OFFSET
0,3
COMMENTS
This sequence is a permutation of the nonnegative integers with inverse A338247 (the offset has been set to 0 so as to get a permutation).
There are only two fixed points: a(0) = 0 and a(1) = 1.
LINKS
EXAMPLE
A117966 = 0, 1, -1, 3, 4, 2, -3, -2, -4, 9, 10, 8, 12, 13, 11, 6, 7, 5, ...
We keep: 0, 1, 3, 4, 2, 9, 10, 8, 12, 13, 11, 6, 7, 5, ...
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Oct 18 2020
STATUS
approved