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

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

%S 1,4,18,76,324,1375,5832,24743,104976,445375,1889568,8016758,34012224,

%T 144301645,612220032,2597429617,11019960576,46753733110,198359290368,

%U 841567195983,3570467226624,15148209527701

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

%H Vincenzo Librandi, <a href="/A017959/b017959.txt">Table of n, a(n) for n = 0..1000</a>

%p Digits:=1500: A017959:=n->round(sqrt(18)^n): seq(A017959(n), n=0..30); # _Wesley Ivan Hurt_, Apr 18 2017

%t Floor[(Sqrt[18])^Range[0,25]+1/2] (* _Vincenzo Librandi_, Nov 20 2011 *)

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

%o (Magma) [Round(Sqrt(18)^n): n in [0..30]]; // _Vincenzo Librandi_, Nov 20 2011

%Y Cf. A010474, A001027 (bisection).

%K nonn,easy

%O 0,2

%A _N. J. A. Sloane_