OFFSET
1,1
COMMENTS
Self-inverse permutation of the natural numbers.
LINKS
FORMULA
a(n)=[n/4] if this is positive and new, else a(n)=4n.
EXAMPLE
a(1)=1*4 because [1/4] is not positive.
a(2)=2*4 because [2/4] is not positive.
a(3)=3*4 because [3/4] is not positive.
a(4)=1=[4*(1/4)].
a(5)=5*4 because [5/4]=a(4), not new.
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jun 11 2006
STATUS
approved