login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A049636
Congruent to 0 or 2 mod 3, but not equal to 0 or 3.
2
2, 5, 6, 8, 9, 11, 12, 14, 15, 17, 18, 20, 21, 23, 24, 26, 27, 29, 30, 32, 33, 35, 36, 38, 39, 41, 42, 44, 45, 47, 48, 50, 51, 53, 54, 56, 57, 59, 60, 62, 63, 65, 66, 68, 69, 71, 72, 74, 75, 77, 78, 80, 81, 83, 84, 86, 87, 89, 90, 92, 93, 95, 96, 98, 99, 101, 102, 104, 105, 107, 108
OFFSET
0,1
COMMENTS
a(n) = T(n, 2), array T as in A049627.
LINKS
FORMULA
O.g.f.: -(x+2)(x^2-x-1)/((1-x)^2*(1+x)). - R. J. Mathar, Aug 13 2008
MATHEMATICA
Join[{2}, Select[Range[4, 100], MemberQ[{0, 2}, Mod[#, 3]]&]] (* or *) With[{nn=100}, Join[{2}, Riffle[Range[5, nn, 3], Range[6, nn, 3]]]] (* Harvey P. Dale, Jul 14 2012 *)
PROG
(PARI) x='x+O('x^20); Vec(-(x+2)*(x^2-x-1)/((1-x)^2*(1+x))) \\ G. C. Greubel, Dec 15 2017
CROSSREFS
Cf. A007494.
Sequence in context: A047442 A005781 A157850 * A045573 A161152 A261905
KEYWORD
nonn
EXTENSIONS
Terms a(38) onward added by G. C. Greubel, Dec 15 2017
STATUS
approved