login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A218734 a(n) = (31^n-1)/30. 32
0, 1, 32, 993, 30784, 954305, 29583456, 917087137, 28429701248, 881320738689, 27320942899360, 846949229880161, 26255426126284992, 813918209914834753, 25231464507359877344, 782175399728156197665, 24247437391572842127616, 751670559138758105956097 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

Partial sums of powers of 31 (A009975).

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 0..600

Index entries related to partial sums.

Index entries for linear recurrences with constant coefficients, signature (32,-31).

FORMULA

G.f.: x/((1-x)*(1-31*x)). - Vincenzo Librandi, Nov 07 2012

a(n) = 32*a(n-1) - 31*a(n-2). - Vincenzo Librandi, Nov 07 2012

a(n) = floor(31^n/30). - Vincenzo Librandi, Nov 07 2012

MATHEMATICA

LinearRecurrence[{32, -31}, {0, 1}, 30] (* Vincenzo Librandi, Nov 07 2012 *)

PROG

(PARI) a(n)=31^n\30

(MAGMA) [n le 2 select n-1 else 32*Self(n-1)-31*Self(n-2): n in [1..20]]; // Vincenzo Librandi, Nov 07 2012

(Maxima) A218734(n):=(31^n-1)/30$

makelist(A218734(n), n, 0, 30); /* Martin Ettl, Nov 07 2012 */

CROSSREFS

Cf. similar sequences of the form (k^n-1)/(k-1): A000225, A003462, A002450, A003463, A003464, A023000, A023001, A002452, A002275, A016123, A016125, A091030, A135519, A135518, A131865, A091045, A218721, A218722, A064108, A218724-A218733, A132469, A218736-A218753, A133853, A094028, A218723.

Sequence in context: A170665 A170713 A170751 * A065552 A298193 A299087

Adjacent sequences:  A218731 A218732 A218733 * A218735 A218736 A218737

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 | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified February 20 01:26 EST 2018. Contains 299357 sequences. (Running on oeis4.)