OFFSET
1,2
COMMENTS
Method of creation of sequence a(n) from b(n) = A018252(n):
Take b(1) and put in vacancy place a(1), swap this place and b(1), repeat with b(2), b(3), ...:
b(1) = 1, a(1) = 1,
b(2) = 4, a(2) = 4, a(4) = 2,
b(3) = 6, a(3) = 6, a(6) = 3,
b(4) = 8, a(5) = 8, a(8) = 5,
b(5) = 9, a(7) = 9, a(9) = 7,
...
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Oct 02 2010
STATUS
approved