OFFSET
1,1
COMMENTS
Josephus and another soldier did not agree with that proposal. By choosing positions 31 and 16 in the ring, Josephus and his companion saved their lives.
As a mathematics problem, the classic "Josephus problem" assumes that the soldiers arranged themselves in a circle and counted by threes to determine the order in which they would be killed, and the comment above assumes that Josephus and the one other survivor deliberately placed themselves in the two positions that would make them the last two survivors, but neither of these assumptions is supported by the account of Josephus himself (see the quote at the Links entry). - Jon E. Schoenfield, Jun 04 2017
LINKS
MATHEMATICA
Needs["Combinatorica`"]
InversePermutation@Josephus[41, 3]
lst = {}; r = 41; s = Range[r]; Do[s = RotateLeft[s, 2]; AppendTo[lst, First[s]]; s = Rest[s], {r}]; lst
CROSSREFS
KEYWORD
easy,fini,full,nonn
AUTHOR
Arkadiusz Wesolowski, Jan 14 2013
STATUS
approved