found the answer. Doesn't seem to be easy.

来源: 2012-06-19 08:41:04 [旧帖] [给我悄悄话] 本文已被阅读:

http://en.wikipedia.org/wiki/Josephus_problem