login
Smallest n-digit square starting with 5.
3

%I #10 Oct 01 2016 05:32:09

%S 529,5041,50176,501264,5004169,50013184,500014321,5000045521,

%T 50000090449,500000309449,5000000100624,50000002660624,

%U 500000010062400,5000000124641041,50000000111812804,500000001150395524

%N Smallest n-digit square starting with 5.

%H Robert Israel, <a href="/A067475/b067475.txt">Table of n, a(n) for n = 3..998</a>

%F a(n) = ceiling(sqrt(5*10^(n-1)))^2, n>2. - _Rick L. Shepherd_, Feb 18 2002

%p seq(ceil(sqrt(5*10^(d-1)))^2, d=3..30); # _Robert Israel_, Sep 30 2016

%t Table[Ceiling[Sqrt[5*10^n]]^2,{n,2,20}] (* _Harvey P. Dale_, Aug 23 2014 *)

%o (PARI) for(n=3,22,a=ceil(sqrt(5*10^(n-1)))^2; print(a))

%Y Cf. A035072 (roots), A045788, A067479 (2..9).

%K base,easy,nonn

%O 3,1

%A _Amarnath Murthy_, Feb 09 2002

%E More terms from _Rick L. Shepherd_, Feb 18 2002