OFFSET
1,2
COMMENTS
The sequence {a(2k)} forms a permutation of the integers >= 2.
EXAMPLE
a(12) = the a(6)th (the 3rd) smallest positive integer not among the first 11 terms of the sequence. Not among the first 11 terms are 6, 7, 9, 10,... The 3rd of these is 9, which is a(12).
MATHEMATICA
a[1] = 1; a[n_] := a[n] = If[ OddQ[n], 1, Complement[ Range[100], Union[ Table[ a[i], {i, n - 1}]]][[a[n/2]] ]]; Table[ a[n], {n, 90}] (* Robert G. Wilson v, Jan 13 2005 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Dec 17 2004
EXTENSIONS
More terms from Robert G. Wilson v, Jan 13 2005
STATUS
approved