login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Number of nonnegative integers with n digits.
5

%I #21 Dec 01 2024 10:04:12

%S 10,90,900,9000,90000,900000,9000000,90000000,900000000,9000000000,

%T 90000000000,900000000000,9000000000000,90000000000000,

%U 900000000000000,9000000000000000,90000000000000000,900000000000000000,9000000000000000000,90000000000000000000

%N Number of nonnegative integers with n digits.

%C Also, first differences of A000533. - _Omar E. Pol_, Feb 24 2011

%H <a href="/index/Rec#order_01">Index entries for linear recurrences with constant coefficients</a>, signature (10).

%F a(1) = 10, a(2) = 90, a(n) = a(n-1)*10 for n>2.

%F a(n) = A052268(n), n>1. - _R. J. Mathar_, Oct 02 2008

%F From _Stefano Spezia_, Dec 01 2024: (Start)

%F G.f.: 10*x*(1 - x)/(1 - 10*x).

%F E.g.f.: (9*exp(10*x) - 9 + 10*x)/10. (End)

%p a:= n-> `if`(n=1, 10, 9*10^(n-1)):

%p seq(a(n), n=1..30); # _Alois P. Heinz_, Sep 12 2012

%t Join[{10},NestList[10#&,90,20]] (* _Harvey P. Dale_, Dec 31 2022 *)

%Y Column k=1 of A216653.

%K base,easy,nonn

%O 1,1

%A _Shyam Sunder Gupta_, Sep 01 2001