login
A022429
a(n) = c(n-1) + c(n-3) where c is the sequence of numbers not in a.
1
1, 2, 5, 9, 11, 14, 17, 20, 23, 27, 29, 33, 35, 39, 41, 45, 47, 50, 53, 56, 59, 62, 65, 68, 71, 74, 77, 80, 83, 86, 89, 92, 95, 99, 101, 105, 107, 111, 113, 117, 119, 123, 125, 129, 131, 135, 137
OFFSET
0,2
LINKS
MATHEMATICA
Fold[Append[#1, Plus @@ Complement[Range[Max@#1 + 3], #1][[{#2, #2 + 2}]]] &, {1, 2, 5}, Range[43]] (* Ivan Neretin, Mar 29 2017 *)
CROSSREFS
Cf. A022424 and references therein.
Sequence in context: A242936 A080154 A069829 * A020907 A206904 A189472
KEYWORD
nonn
EXTENSIONS
Missing term a(20) = 59 added by Ivan Neretin, Mar 29 2017
STATUS
approved