OFFSET
1,2
COMMENTS
A permutation of the natural numbers.
FORMULA
a(1)=1, a(2)=2 and for n>=3 let F(n)={a(1),a(2),...,a(n)}. For odd n>=3, a(n)=x+y where x,y are the least positive integers not in F(n-1); for even n>=3, a(n)=least positive difference x-y such that x,y are in F(n-1) and x-y is not in F(n-1).
EXAMPLE
a(3)=3+4, a(4)=7-2, a(4)=3+6, a(5)=5-2, a(6)=4+6.
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 03 2006
STATUS
approved