OFFSET
0,3
COMMENTS
Partial sums of powers of 34 (A009978).
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..600
Index entries for linear recurrences with constant coefficients, signature (35,-34).
FORMULA
From Vincenzo Librandi, Nov 07 2012: (Start)
G.f.: x/((1 - x)*(1 - 34*x)).
a(n) = 35*a(n-1) - 34*a(n-2).
a(n) = floor(34^n/33). (End)
E.g.f.: exp(x)*(exp(33*x) - 1)/33. - Stefano Spezia, Mar 26 2023
MATHEMATICA
LinearRecurrence[{35, -34}, {0, 1}, 30] (* Vincenzo Librandi, Nov 07 2012 *)
PROG
(PARI) A218737(n)=34^n\33
(Magma) [n le 2 select n-1 else 35*Self(n-1)-34*Self(n-2): n in [1..20]]; // Vincenzo Librandi, Nov 07 2012
(Maxima) A218737(n):=(34^n-1)/33$
makelist(A218737(n), n, 0, 30); /* Martin Ettl, Nov 07 2012 */
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, Nov 04 2012
STATUS
approved