login
Powers of sqrt(10) rounded to nearest integer.
1

%I #22 Sep 08 2022 08:44:43

%S 1,3,10,32,100,316,1000,3162,10000,31623,100000,316228,1000000,

%T 3162278,10000000,31622777,100000000,316227766,1000000000,3162277660,

%U 10000000000,31622776602,100000000000,316227766017,1000000000000,3162277660168,10000000000000

%N Powers of sqrt(10) rounded to nearest integer.

%H Vincenzo Librandi, <a href="/A017935/b017935.txt">Table of n, a(n) for n = 0..1994</a> (truncated by Georg Fischer, Apr 27 2019)

%F a(n) = round(10^(n/2)).

%p a:= proc(n) Digits:= 10+iquo(n,2): round(sqrt(10)^n) end:

%p seq(a(n), n=0..40); # _Alois P. Heinz_, Apr 27 2019

%t Floor[(Sqrt[10]^Range[0,40]+1/2)] (* _Vincenzo Librandi_, Nov 19 2011 *)

%o (PARI) a(n)=round(sqrt(10)^n) \\ _Charles R Greathouse IV_, Nov 18 2011

%o (Magma) [Round(Sqrt(10)^n): n in [0..40]]; // _Vincenzo Librandi_, Nov 19 2011

%K nonn

%O 0,2

%A _N. J. A. Sloane_