The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A014925 Number of zeros in numbers 1 to 111...1 (n+1 digits). 9
1, 21, 321, 4321, 54321, 654321, 7654321, 87654321, 987654321, 10987654321, 120987654321, 1320987654321, 14320987654321, 154320987654321, 1654320987654321, 17654320987654321, 187654320987654321 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(1) = 1; for n>1, a(n) = n*10^(n-1)+a(n-1).
G.f.: x/((1-x)*(1-10*x)^2).
a(n) = 10^n*(n+1)/9-1/81*10^(n+1)+1/81.
a(n) = (10^n*(9*n-1)+1)/81. - Kenneth E. Caviness, Mar 30 2011
E.g.f.: (1 - exp(9*x) + 90*x*exp(9*x))*exp(x)/81. - Ilya Gutkovskiy, May 02 2016
a(n) = Sum_{i=0..n}(i*10^(i-1)). - José de Jesús Camacho Medina, Dec 14 2016
PROG
(Magma) [(10^n*(9*n-1)+1)/81: n in [1..25]]; // Vincenzo Librandi, Mar 31 2011
(PARI) a(n) = sum(i=0, n, i*10^(i-1)); \\ Michel Marcus, Dec 15 2016
CROSSREFS
Cf. A033713.
Sequence in context: A057138 A104759 A138793 * A000422 A060554 A057610
KEYWORD
nonn,easy,base
AUTHOR
EXTENSIONS
Better description from Stephen G Penrice, Oct 03 2000
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 June 15 10:19 EDT 2024. Contains 373407 sequences. (Running on oeis4.)