Introduction - If you have any usage issues, please Google them yourself
Joseph is a well-known problem: N personal circle, starting the first report number, the M will be killed, the last remaining one, the others will be killed. For example, N=6, M=5, kill order: 5, 4, 6, 2, 3, 1.