0

Shotgun Numbering
code-golfnumbersequencepermutations
The Shotgun numbers are defined as follows. Start with the natural numbers:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, ...
Now take all numbers at indices divisible by 2, group them into pairs, and swap the num...