login
A125962
Numbers whose base-9 representation is 555555555......5.
0
0, 5, 50, 455, 4100, 36905, 332150, 2989355, 26904200, 242137805, 2179240250, 19613162255, 176518460300, 1588666142705, 14297995284350, 128681957559155, 1158137618032400, 10423238562291605, 93809147060624450, 844282323545620055, 7598540911910580500
OFFSET
0,2
FORMULA
a(n) = (9^n - 1)*5/8.
a(n) = 9*a(n-1) + 5 with n > 0, a(0)=0. - Vincenzo Librandi, Sep 30 2010
From Chai Wah Wu, Mar 12 2018: (Start)
a(n) = 10*a(n-1) - 9*a(n-2) for n > 1.
G.f.: 5*x/((1 - x)*(1 - 9*x)). (End)
MATHEMATICA
FromDigits[#, 9]&/@ Table[PadRight[{5}, n, 5], {n, 0, 20}] (* Harvey P. Dale, Jan 27 2011 *)
PROG
(PARI) a(n) = (9^n-1)*5/8; \\ Altug Alkan, Mar 12 2018
CROSSREFS
Sequence in context: A133646 A043032 A247771 * A361555 A266028 A228751
KEYWORD
nonn,easy
AUTHOR
Zerinvary Lajos, Feb 03 2007
STATUS
approved