在 1至1000 这1000个自然数中,能被5或11整除的自然数一共有多少个?

作者: tihaiku 人气: - 评论: 0
问题 在 1至1000 这1000个自然数中,能被5或11整除的自然数一共有多少个?
选项
答案 272
解析 解析:如下图,小圆表示能被11整除的自然数,大圆表示能被5整除的自然数。如果把大圆内的200个自然数和小圆内90个自然数相加,阴影部分的自然数事实上被加了两次。因此要想求出:能被5或11整除的自然数的个数就应该:能被 5 整除的自然数的个数能被 11 整除的自然数的个数既能被5整除又能被11整除的自然数的个数=能被5或11整除的自然数的个数。 解答:能被 5 整除的自然数有多少个?10005=200有200个。能被11整除的自然数有多少个?100011=90……10 有 90 个。既能被5整除又能被11整除的自然数有多少个?100055=18……10 有 18 个。所以能被5或11整除的自然数的个数是:200+90-18=272 个。

相关内容:1000个,自然数,共有

猜你喜欢

更多 网友评论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.'; ?>