OFFSET
1,3
COMMENTS
Numbers k such that k == 0 or 1 (mod 30). - Robert Israel, Jan 20 2016
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,1,-1).
FORMULA
a(n) = 15*n - 7*(-1)^n - 22.
G.f.: x^2*(29*x+1)/((x-1)^2*(x+1)).
MATHEMATICA
Table[15*n - 7*(-1)^n - 22, {n, 1000}] (* Or *)
Select[ Range[0, 20000], (Mod[#, 2]==Mod[#, 3]==Mod[#, 5]) &]
LinearRecurrence[{1, 1, -1}, {0, 1, 30}, 60] (* Harvey P. Dale, Nov 15 2021 *)
PROG
(PARI) concat(0, Vec(x^2*(29*x+1)/((x-1)^2*(x+1)) + O(x^60))) \\ Colin Barker, Jan 21 2016
(Magma) [15*n-7*(-1)^n-22: n in [1..60]]; // Vincenzo Librandi, Jan 21 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mikk Heidemaa, Jan 20 2016
STATUS
approved