OFFSET
1,2
COMMENTS
Sequence is a permutation of the positive integers.
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..8192
EXAMPLE
8 = 2^2 +4. So since k = 4, we want the a(4)th = 5th positive integer from the sequence 6,8,10,11,12,13,..., i.e., from the sequence of positive integers not occurring among the first 7 terms of {a(k)}. So a(8) = 12.
MATHEMATICA
a = {1}; Do[AppendTo[a, Complement[Range[Max[a] + (d = a[[i - 2^Floor[Log2[i - 1]]]])], a][[d]]], {i, 2, 71}]; a (* Ivan Neretin, May 03 2015 *)
CROSSREFS
KEYWORD
AUTHOR
Leroy Quet, May 22 2006
EXTENSIONS
More terms from Joshua Zucker, Jul 04 2006
STATUS
approved