login
A022437
a(n) = c(n-1) + c(n-3) where c is the sequence of numbers not in a.
3
2, 3, 4, 7, 13, 15, 18, 20, 22, 25, 28, 31, 35, 38, 42, 45, 49, 51, 55, 57, 61, 63, 66, 69, 71, 75, 77, 80, 83, 85, 89, 91, 94, 97, 100, 103, 106, 109, 112, 115, 118, 121, 124, 127, 131, 133
OFFSET
0,1
LINKS
MATHEMATICA
Fold[Append[#1, Plus @@ Complement[Range[Max@#1 + 3], #1][[{#2, #2 + 2}]]] &, {2, 3, 4}, Range[43]] (* Ivan Neretin, Mar 30 2017 *)
CROSSREFS
Cf. A022424 and references therein.
Sequence in context: A152605 A285222 A023162 * A057983 A200088 A004783
KEYWORD
nonn
STATUS
approved