concur. Will the following answer stand?

本帖于 2014-12-29 22:45:05 时间, 由普通用户 heure 编辑
回答: 2000-百科-2014-12-29 20:49:47

we know 1+2+3+...+n = n(n+1)/2

1+2+3+...+2000 = 2000 x 2001 / 2 = 2001000

2001000 mod 2000 = 1000, so we need to find out which value(s) lands on the 1000th point.

[n(n+1)/2] mod 2000 = 1000 =>

n(n+1) mod 4000 = 2000 =>

n(n+1) = 2000 + 4000k, k = 0, 1, ..., [n(n+1) - 2000]/4000

in another word, n(n+1) has to end up as an even multiple thousands (2000, 6000, 8000, 12000, etc), while n <= 2000.
Notice n and (n+1) are two consecutive numbers, the only hope is:

999 x 1000 = 999000, not even thousands (999)
1000 x 1001 = 1001000, not even thousands (1001)

No product of any other two consecutive numbers (< 2000) will produce a number with whole thousand (ending 3 zeros),

therefore, the 1000th position has not been landed by any other number before the number 2000,

hence 2000 is the answer.



所有跟帖: 

牛! -soundofsilence- 给 soundofsilence 发送悄悄话 soundofsilence 的博客首页 (0 bytes) () 12/29/2014 postreply 22:45:22

汗,there must be simpler way to do it -heure- 给 heure 发送悄悄话 (0 bytes) () 12/29/2014 postreply 22:54:26

能做出来就是好样的了。 -soundofsilence- 给 soundofsilence 发送悄悄话 soundofsilence 的博客首页 (18 bytes) () 12/29/2014 postreply 23:07:41

还是遗误了,624 x 625 满足条件,应该是 624 -heure- 给 heure 发送悄悄话 (6 bytes) () 12/30/2014 postreply 06:34:26

做得很好了,思路是对的 -ca981- 给 ca981 发送悄悄话 ca981 的博客首页 (468 bytes) () 12/30/2014 postreply 06:53:50

请您先登陆,再发跟帖!