从1到n的门牌号,除了小明家的门牌号之外的和为10000,问小明家的门牌号为多少?

作者: tihaiku 人气: - 评论: 0
问题 从1到n的门牌号,除了小明家的门牌号之外的和为10000,问小明家的门牌号为多少?
选项
答案 11
解析 解析:从1起n个连续自然数中去掉一后和是10000,那么我们求出从1起n个连续自然数的和比10000大且最接近10000时的n是几,由等差数列求和公式,1+2+3+...+n=n(n+1)/2, 要使n(n+1)/2>10000,这是一个一元二次不等式,通过解它,或代数字进去尝试,可以得到n>=141, 当n=141时,和是10011,正好比10000多了11,所以11没加进去,11为所求。

相关内容:门牌号,除了,小明家,门牌

猜你喜欢

更多 网友评论0 条评论)
暂无评论
错误啦!

错误信息

  • 消息: [程序异常] : MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
  • 文件: /twcms/kongphp/cache/cache_redis.class.php
  • 位置: 第 85 行
    <?php echo 'KongPHP, Road to Jane.'; ?>