login
Smallest n-digit number divisible by n.
10

%I #26 Jan 03 2016 15:51:31

%S 1,10,102,1000,10000,100002,1000006,10000000,100000008,1000000000,

%T 10000000010,100000000008,1000000000012,10000000000004,

%U 100000000000005,1000000000000000,10000000000000016,100000000000000008,1000000000000000018,10000000000000000000

%N Smallest n-digit number divisible by n.

%H Harry J. Smith, <a href="/A053041/b053041.txt">Table of n, a(n) for n = 1..150</a>

%F a(n) = n*ceiling(10^(n-1)/n). - _Vladeta Jovovic_, Dec 27 2001

%p A053041:=n->n*ceil(10^(n-1)/n); seq(A053041(n), n=1..30); # _Wesley Ivan Hurt_, Nov 28 2013

%t Table[Ceiling[10^(n-1)/n]n,{n,20}] (* _Harvey P. Dale_, Jan 17 2012 *)

%o (PARI) { for (n=1, 150, write("b053041.txt", n, " ", n*ceil(10^(n-1)/n)) ) } \\ _Harry J. Smith_, Feb 23 2010

%Y Cf. A066559, A066209, A066557, A066558, A162213.

%K base,easy,nonn,nice

%O 1,2

%A _Henry Bottomley_, Feb 24 2000

%E More terms from _David Wasserman_, Feb 26 2002