OFFSET
1,2
COMMENTS
A permutation of numbers.
LINKS
FORMULA
If n < 3, a(n) = n. If n-2 = A007504(A083375(n-2)), then a(n) = a(n-1-A000040(A083375(n-2)))+2, otherwise a(n) = a(n-1)+2. - Antti Karttunen, Oct 05 2009.
EXAMPLE
Let
S1={1}
S2={2,4}
S3={3,5,7}
S4={6,8,10,12,14}
S5={9,11,13,15,17,19,21}
S6={16,18,20,22,24,26,28,30,32,34,36}
...
then S1, S2, S3, S4, S5, S6,... gives this sequence.
PROG
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Ctibor O. Zizka, May 14 2008
EXTENSIONS
Edited, extended, and offset changed from 0 to 1 by Antti Karttunen, Oct 05 2009
STATUS
approved