OFFSET
1,2
COMMENTS
This is a permutation of the natural numbers with inverse permutation A225607.
The sequence (n, a(n), a(a(n)), a(a(a(n))),...) is periodic for any n.
The run lengths of the binary representation of a fixed point are of the form [1, 1,...,1, K] (any number of ones followed by any number).
LINKS
EXAMPLE
For n=927:
(1) binary representation of n = "1110011111",
(2) run lengths of n = [1+2,1+1,1+4],
(3) run lengths of a(n) = [1+(2),1+(2 XOR 1),1+(2 XOR 1 XOR 4)]=[3,4,8],
(4) binary representation of a(n) = "111000011111111",
(5) a(n) = 28927.
PROG
(Perl) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paul Tek, Aug 02 2013
STATUS
approved