A047363 Numbers that are congruent to {0, 2, 3, 4, 5} mod 7.
0, 2, 3, 4, 5, 7, 9, 10, 11, 12, 14, 16, 17, 18, 19, 21, 23, 24, 25, 26, 28, 30, 31, 32, 33, 35, 37, 38, 39, 40, 42, 44, 45, 46, 47, 49, 51, 52, 53, 54, 56, 58, 59, 60, 61, 63, 65, 66, 67, 68, 70, 72, 73, 74, 75, 77, 79
Offset: 1
Keywords
Links
- Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,1,-1).
Programs
-
Mathematica
Table[7 n + {0, 2, 3, 4, 5}, {n, 0, 12}] // Flatten (* or *) Select[Range[0, 79], ! MemberQ[{1, 6}, Mod[#, 7]] &] (* or *) Rest@ CoefficientList[Series[x^2 (2 x^2 + 3 x + 2) (x^2 - x + 1)/((x^4 + x^3 + x^2 + x + 1) (x - 1)^2), {x, 0, 57}], x] (* Michael De Vlieger, Jul 25 2016 *)
Formula
G.f.: x^2*(2*x^2 + 3*x + 2)*(x^2 - x + 1) / ( (x^4 + x^3 + x^2 + x + 1)*(x-1)^2 ). - R. J. Mathar, Dec 04 2011
a(n) = a(n-1) + a(n-5) - a(n-6). - Wesley Ivan Hurt, Sep 03 2022
Comments