请教:Counting-off Puzzles

来源: bangbang9814 2012-06-18 19:44:30 [] [旧帖] [给我悄悄话] 本文已被阅读: 次 (242 bytes)

这样的问题有规律可寻吗?

25 people are standing in ca circle. Starting with person 1, they count off from 1 to 7 and them start over with 1. Each person who says"7" drops out of the circle. who is the last person left?

所有跟帖: 

回复:请教:Counting-off Puzzles -大财主- 给 大财主 发送悄悄话 (9 bytes) () 06/19/2012 postreply 13:42:59

15 -jinjing- 给 jinjing 发送悄悄话 (0 bytes) () 06/19/2012 postreply 16:53:08

Recursive formula : f(m+1)=7+f(m)-(m+1)*[(7+f(m))/(m+1)] -jinjing- 给 jinjing 发送悄悄话 (51 bytes) () 06/21/2012 postreply 11:45:34

m>7. f(m) : last number for m. f(1)=1,f(2)=2,...,f(7)=5, ..., -jinjing- 给 jinjing 发送悄悄话 (98 bytes) () 06/21/2012 postreply 12:04:10

should be f(m+1)=7+f(m)-(m+1)*[(6+f(m))/(m+1)],f(25)=15. -jinjing- 给 jinjing 发送悄悄话 (0 bytes) () 06/23/2012 postreply 08:56:33

谢谢各位。子女坦的大侠们给编了code。答案是15。 -bangbang9814- 给 bangbang9814 发送悄悄话 (0 bytes) () 06/25/2012 postreply 15:48:15

回复:请教:Counting-off Puzzles -wxczcbm- 给 wxczcbm 发送悄悄话 (1689 bytes) () 07/11/2012 postreply 18:26:19

很好,...,加一说明更好: m mod m=m. ... -jinjing- 给 jinjing 发送悄悄话 (0 bytes) () 07/11/2012 postreply 20:07:00

请您先登陆,再发跟帖!

发现Adblock插件

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

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

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

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