By copy and paste

来源: innercool 2009-10-10 12:40:42 [] [博客] [旧帖] [给我悄悄话] 本文已被阅读: 次 (659 bytes)
First observe that
P(0)+P(1)+...P(999)
and P(1000)+P(1001)+P(1999) is the same except the latter has one more non-zero term P(1000)=1.
Let us define S(1000):= P(0)+P(1)+...P(999),
then P(1)+P(2)+...+P(2009)=2*S(1000)+1+P(2000)+...+P(2009)
=2*S(1000)+1+2*46=2*S(1000)+93.
Now apply the same calculation to S(1000) using S(100):=P(0)+P(1)+...P(99), we have
P(100)+P(101)+...+P(199)=1+S(100)
P(200)+P(201)+...+P(299)=2+2*S(100)
...
P(900)+P(901)+...+P(999)=9+9*S(100)
Summing them up gives,
S(1000)=46*S(100)+45.
Similarly we can get S(100)=46*S(10)+45, but S(10) is simply 45. So the final answer seems to be 194763.

所有跟帖: 

Nice! -乱弹- 给 乱弹 发送悄悄话 乱弹 的博客首页 (0 bytes) () 10/10/2009 postreply 18:55:26

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”