From: Periodic characteristics of the Josephus ring and its application in image scrambling
New sequence generated by j times the Josephus cycle (B nj ) | Original sequence (A n ) | |||
---|---|---|---|---|
1 | 2 | 3 | 4 | |
B n1 | 2 | 4 | 3 | 1 |
B n2 | 4 | 1 | 3 | 2 |
B n3 | 1 | 2 | 3 | 4 |
... | ... | ... | ... | ... |
B nj | ... | ... | ... | ... |