2 lines
71 B
Text
2 lines
71 B
Text
|
|
Josephus(n, k)=if(n<2, n>0, my(t=(Josephus(n-1, k)+k)%n); if(t, t, n))
|