login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A218742 a(n) = (39^n-1)/38. 3
0, 1, 40, 1561, 60880, 2374321, 92598520, 3611342281, 140842348960, 5492851609441, 214221212768200, 8354627297959801, 325830464620432240, 12707388120196857361, 495588136687677437080, 19327937330819420046121 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Partial sums of powers of 39 (A009983).
LINKS
FORMULA
a(n) = floor(39^n/38).
G.f.: x/((1-x)*(1-39*x)). - Vincenzo Librandi, Nov 07 2012
a(n) = 40*a(n-1) - 39*a(n-2). - Vincenzo Librandi, Nov 07 2012
MATHEMATICA
LinearRecurrence[{40, -39}, {0, 1}, 30] (* Vincenzo Librandi, Nov 07 2012 *)
(39^Range[0, 20]-1)/38 (* Harvey P. Dale, Mar 05 2023 *)
PROG
(PARI) a(n)=39^n\38
(Magma) [n le 2 select n-1 else 40*Self(n-1) - 39*Self(n-2): n in [1..20]]; // Vincenzo Librandi, Nov 07 2012
(Maxima) A218742(n):=(39^n-1)/38$
makelist(A218742(n), n, 0, 30); /* Martin Ettl, Nov 07 2012 */
CROSSREFS
Sequence in context: A170721 A063820 A170759 * A158703 A209223 A207692
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, Nov 04 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 12:33 EDT 2024. Contains 371969 sequences. (Running on oeis4.)