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”).

A047326
Numbers that are congruent to {0, 1, 2, 5, 6} mod 7.
0
0, 1, 2, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 26, 27, 28, 29, 30, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 47, 48, 49, 50, 51, 54, 55, 56, 57, 58, 61, 62, 63, 64, 65, 68, 69, 70, 71, 72, 75, 76, 77, 78
OFFSET
1,3
FORMULA
G.f.: x^2*(1 + x + 3*x^2 + x^3 + x^4) / ( (1 + x + x^2 + x^3 + x^4)*(x-1)^2 ). - R. J. Mathar, Dec 04 2011
MATHEMATICA
DeleteCases[Range[0, 100], _?(MemberQ[{3, 4}, Mod[#, 7]]&)] (* or *) LinearRecurrence[ {1, 0, 0, 0, 1, -1}, {0, 1, 2, 5, 6, 7}, 90] (* Harvey P. Dale, Aug 06 2018 *)
CROSSREFS
Sequence in context: A228090 A287440 A111175 * A039044 A212441 A182783
KEYWORD
nonn
STATUS
approved