login
Pisot sequence T(6,10), a(n) = floor(a(n-1)^2/a(n-2)).
1

%I #12 Dec 27 2021 17:11:14

%S 6,10,16,25,39,60,92,141,216,330,504,769,1173,1789,2728,4159,6340,

%T 9664,14730,22451,34219,52155,79492,121157,184660,281447,428963,

%U 653797,996474,1518759,2314790,3528046,5377208,8195575,12491138,19038142,29016639,44225184

%N Pisot sequence T(6,10), a(n) = floor(a(n-1)^2/a(n-2)).

%H Colin Barker, <a href="/A020741/b020741.txt">Table of n, a(n) for n = 0..1000</a>

%t nxt[{a_,b_}]:={b,Floor[b^2/a]}; NestList[nxt,{6,10},40][[All,1]] (* _Harvey P. Dale_, Dec 27 2021 *)

%o (PARI) pisotT(nmax, a1, a2) = {

%o a=vector(nmax); a[1]=a1; a[2]=a2;

%o for(n=3, nmax, a[n] = floor(a[n-1]^2/a[n-2]));

%o a

%o }

%o pisotT(50, 6, 10) \\ _Colin Barker_, Jul 29 2016

%Y See A008776 for definitions of Pisot sequences.

%K nonn

%O 0,1

%A _David W. Wilson_