login
A022433
a(n) = c(n-1) + c(n-3) where c is the sequence of numbers not in a.
1
1, 3, 5, 8, 11, 15, 17, 21, 23, 26, 29, 32, 35, 38, 41, 44, 47, 51, 53, 57, 59, 63, 65, 69, 71, 75, 77, 81, 83, 87, 89, 93, 95, 98, 101, 104, 107, 110, 113, 116, 119, 122, 125, 128, 131, 134
OFFSET
0,2
LINKS
MATHEMATICA
Fold[Append[#1, Plus @@ Complement[Range[Max@#1 + 3], #1][[{#2, #2 + 2}]]] &, {1, 3, 5}, Range[43]] (* Ivan Neretin, Mar 30 2017 *)
CROSSREFS
Cf. A022424 and references therein.
Sequence in context: A348450 A360628 A260273 * A284442 A335860 A207038
KEYWORD
nonn
STATUS
approved