|
|
A022955
|
|
Unique increasing sequence satisfying a(n) = a(n-3) + c(n-3); where c( ) is complement of a( ).
|
|
2
|
|
|
1, 2, 3, 5, 8, 10, 14, 19, 22, 27, 34, 38, 44, 52, 58, 65, 75, 82, 90, 101, 110, 119, 131, 141, 151, 164, 176, 187, 201, 215, 227, 242, 257, 270, 287, 303, 317, 335, 352, 367, 386, 405, 421, 441, 461, 478, 500, 521, 539, 562, 584, 603, 628, 651
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Here "complement" refers to the numbers not in the sequence.
|
|
LINKS
|
|
|
MATHEMATICA
|
Fold[Append[#1, #1[[#2]] + Complement[Range[Max@#1 + 1], #1][[#2]]] &, {1, 2, 3}, Range[50]] (* Ivan Neretin, Apr 05 2016 *)
|
|
CROSSREFS
|
Cf. A005228 and references therein.
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|