Combinatorica`
Combinatorica`
Josephus
Josephus[n,m]
generates the inverse of the permutation defined by executing every m member in a circle of n members.
更多信息和选项
- To use Josephus, you first need to load the Combinatorica Package using Needs["Combinatorica`"].