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!)
A002279 a(n) = 5*(10^n - 1)/9. 39
0, 5, 55, 555, 5555, 55555, 555555, 5555555, 55555555, 555555555, 5555555555, 55555555555, 555555555555, 5555555555555, 55555555555555, 555555555555555, 5555555555555555, 55555555555555555, 555555555555555555, 5555555555555555555, 55555555555555555555, 555555555555555555555 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Arithmetic mean of all n-digit odd numbers. E.g., a(2) = arithmetic mean of {11,13,15,...,97,99} = (11+99)/2 = 55. - Amarnath Murthy, Aug 02 2005
LINKS
Eric Weisstein's World of Mathematics, Repdigit.
FORMULA
a(n) = A178632(n)/A002283(n). - Reinhard Zumkeller, May 31 2010
From Vincenzo Librandi, Jul 22 2010: (Start)
a(n) = a(n-1) + 5*10^(n-1) with a(0)=0.
a(n) = 11*a(n-1) - 10*a(n-2) with a(0)=0, a(1)=5. (End)
G.f.: 5*x/((1 - x)*(1 - 10*x)). - Ilya Gutkovskiy, Feb 24 2017
E.g.f.: 5*exp(x)*(exp(9*x) - 1)/9. - Stefano Spezia, Sep 13 2023
From Karl-Heinz Hofmann, Nov 28 2023: (Start)
a(n) = A010785(9*n-4) for n > 0.
a(n) = 5 * A002275(n).
a(n) = 5 * A002283(n) / 9. (End)
MATHEMATICA
Table[FromDigits[PadRight[{}, n, 5]], {n, 0, 20}] (* Harvey P. Dale, Oct 05 2013 *)
PROG
(Maxima) A002279(n):=5*(10^n-1)/9$
makelist(A002279(n), n, 0, 30); /* Martin Ettl, Nov 08 2012 */
(PARI) a(n)=5*(10^n-1)/9 \\ Charles R Greathouse IV, Sep 24 2015
(Python)
def A002279(n): return 5*(10**n-1)//9 # Karl-Heinz Hofmann, Nov 28 2023
CROSSREFS
Sequence in context: A342420 A226561 A062183 * A119292 A139258 A102312
KEYWORD
easy,nonn
AUTHOR
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 May 8 00:02 EDT 2024. Contains 372317 sequences. (Running on oeis4.)