Talk:Josephus problem: Difference between revisions
m
→Categorisation of solutions: add some more thoughts
m (→Categorisation of solutions: fix a typo) |
m (→Categorisation of solutions: add some more thoughts) |
||
Line 119:
: <code>{ 1 4 5 6 ... 41 }</code>
: etc. Now whichever remainder you end up with via this process is the answer. I didn't write this solution and I'm not familiar with the Josephus problem, so I'm not sure if this fits into one of the categories above. Having a look at R and Ring, it seems like the Factor solution is doing the same thing, only using a fold instead of a loop. I believe Racket is also using a fold in the same way as Factor. --[[User:Chunes|Chunes]] ([[User talk:Chunes|talk]]) 14:34, 24 June 2020 (UTC)
|