1至1000中所有不能被5,6,8整除的自然数有多少个?()A. 491 B. 107 C. 400 D. 600

作者: tihaiku 人气: - 评论: 0
问题 1至1000中所有不能被5,6,8整除的自然数有多少个?()
选项 A. 491 B. 107 C. 400 D. 600
答案 D
解析 只要求出1-1000内5的倍数、6的倍数或8的倍数或5X6,5X8,24,120的倍数, 再根据容斥原理就可求得。 5的倍数有5、10…1000共200个; 6的倍数有6、12…996共166个; 8的倍数有8、16…共125个; 24的倍数有24、48...984共41个; 30的倍数有30、60…990共33个; 40的倍数有40、80…1000共25个; 120的倍数有120、240…960共8个。 根据容斥原理可知,5或6或8的倍数有: (200 + 166 + 125)-(33 + 25+41)+8 = 400(个)。 不能被5或6或8中任一个整除的有1000-400 = 600(个)。 故本题选D。

相关内容:中所,自然数

猜你喜欢

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