A022440 a(n) = c(n-1) + c(n-3) where c is the sequence of positive numbers not in a.
3, 4, 5, 7, 10, 15, 19, 21, 24, 26, 29, 31, 34, 37, 40, 43, 47, 50, 53, 57, 60, 63, 67, 69, 73, 75, 79, 81, 85, 87, 90, 93, 95, 99, 101, 105, 107, 110, 113, 115, 119, 121, 125, 127, 130, 133, 136, 139, 142, 145, 148, 151, 154, 157, 160, 163, 166, 169, 172, 175, 179, 181
Offset: 1
Links
- G. C. Greubel, Table of n, a(n) for n = 1..10000
Crossrefs
Cf. A022424 and references therein.
Programs
-
Mathematica
Fold[Append[#1, Plus @@ Complement[Range[Max@#1 + 3], #1][[{#2, #2 + 2}]]] &, {3, 4, 5}, Range[59]] (* Ivan Neretin, Mar 30 2017 *)
Extensions
More terms from Jon E. Schoenfield, Apr 02 2010
Comments