OFFSET
1,1
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -1).
FORMULA
a(n) = a(n-57) + 105.
a(n) = a(n-1) + a(n-57) - a(n-58).
G.f.: x*(x^57 + x^56 + x^55 + x^54 + 3*x^53 + 3*x^52 + 2*x^51 + x^50 + 3*x^49 + x^48 + 2*x^47 + 3*x^46 + 2*x^45 + x^44 + 2*x^43 + x^42 + 3*x^41 + x^40 + 2*x^39 + 3*x^38 + x^37 + 2*x^36 + 2*x^35 + x^34 + 2*x^33 + x^32 + x^31 + 2*x^30 + 3*x^29 + 3*x^28 + 2*x^27 + x^26 + x^25 + 2*x^24 + x^23 + 2*x^22 + 2*x^21 + x^20 + 3*x^19 + 2*x^18 + x^17 + 3*x^16 + x^15 + 2*x^14 + x^13 + 2*x^12 + 3*x^11 + 2*x^10 + x^9 + 3*x^8 + x^7 + 2*x^6 + 3*x^5 + 3*x^4 + x^3 + x^2 + x + 2) / ((x - 1)^2*(x^2 + x + 1)*(x^18 + x^17 + x^16 + x^15 + x^14 + x^13 + x^12 + x^11 + x^10 + x^9 + x^8 + x^7 + x^6 + x^5 + x^4 + x^3 + x^2 + x + 1)*(x^36 - x^35 + x^33 - x^32 + x^30 - x^29 + x^27 - x^26 + x^24 - x^23 + x^21 - x^20 + x^18 - x^16 + x^15 - x^13 + x^12 - x^10 + x^9 - x^7 + x^6 - x^4 + x^3 - x + 1)).
MATHEMATICA
Take[With[{no=50}, Union[Join[3Range[0, no]+2, 5Range[0, no]+3, 7Range[0, no]+4]]], 70] (* Harvey P. Dale, Feb 16 2011 *)
PROG
(Magma) IsA186041:=func< n | exists{ k: k in [0..n div 3] | n in [3*k+2, 5*k+3, 7*k+4] } >; [ n: n in [1..200] | IsA186041(n) ];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Feb 11 2011, Mar 09 2011
STATUS
approved