惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

博客园 - Lain

Visual studio 2008切换设计视图无响应 远去的自己... 最美的时候... Installing VS 2008 SP1 on Windows 7 关于清理文本中的各类空白字符.. 如何解决FtpWebRequest基础连接已经关闭:接收时发生错误... 斥候... 普鲁斯特.... 马太效应... 几种解法.... 稀饭的就是这个.. 将插入的新行放入dataGridView的第一行 阿迪王... 大马士革钢... The English Language visual studio R6034解决方案集 Erro Message in Visual Studio : "automation can't create object" 低位在前... 不能理解...
智力题..发月饼...
Lain · 2008-11-24 · via 博客园 - Lain

发月饼,第一个人拿一个和剩下的九分之一,第二个人拿2个和剩下的九分之一,以此类推,全部发完,问月饼多少,人多少

此题需逆向思考。 

最后一个取走的月饼数目应与总人数相同。他前面一个取走总人数减1块月饼和剩余月饼(W)的1/9。由此可知最后一个得到的是剩余月饼(W)的8/9。即,在最后一个取月饼的时候,剩余月饼应是8的倍数。 

假设最后一个取走的是8块月饼。那么,共有8个人分月饼。 

第7个取走7块月饼再加上剩余9块月饼的1/9共8块月饼。 

第7、第8个一共取走16块月饼, 
这应该是第6个取走6块月饼后剩余月饼的8/9。我们可以得到第6个取走6块后剩余的月饼数为16/(8/9)=18。第6个取走的月饼数为6+18/9=8。 

第5个取走5块月饼后剩余月饼的8/9为8+8+8=24块。则第5个取走5块月饼后剩余的月饼数为24/(8/9)=27块。第5个共取走5+27/9=8块月饼。 

第4个取走4块月饼后剩余月饼的8/9为8+8+8+8 =32块。则第4个取走4块月饼后剩余的月饼数为32/(8/9)=36块。第4个共取走4+36/9=8块月饼。 

第3个取走3块月饼后剩余月饼的8/9为8+8+8+8+ 8=40块。则第3个取走3块月饼后剩余的月饼数为40/(8/9)=45块。 
第3个共取走3+45/9=8块月饼。 

同样,第2、第1个也分别取走8块月饼。 

综上所述,每个人都取走8块月饼。因此,共有8个人,64块月饼。