小红有15颗完全相同的糖果,如果她每天吃一颗或者两颗,那么共有多少种不同的吃法?( )A.972 B.979 C.987 D.1000

作者: tihaiku 人气: - 评论: 0
问题 小红有15颗完全相同的糖果,如果她每天吃一颗或者两颗,那么共有多少种不同的吃法?( )
选项 A.972 B.979 C.987 D.1000
答案 C
解析 分情况讨论。每天吃一颗糖,可以吃15天,有11种吃法;有且只有一天吃了两颗糖,可以吃14天,共有=14(种)吃法;有两天吃了两颗糖,可以吃13天,共有=78(种)吃法;有三天吃了两颗糖,可以吃12天,共有=220(种)吃法;有四天吃了两颗糖,可以吃11天,共有=330(种)吃法;有五天吃了两颗糖,可以吃10天,共有=252(种)吃法;有六天吃了两颗糖,可以吃99天,共有=84(种)吃法;有七天吃了两颗糖,可以吃88天,共有=8(种)吃法。所以共有1+14+78+220+330+252+84+8=987(种)吃法。

相关内容:小红,糖果,共有,吃法,D.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.'; ?>