The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A020728 Pisot sequence T(2,9), a(n) = floor(a(n-1)^2/a(n-2)). 1
2, 9, 40, 177, 783, 3463, 15315, 67730, 299533, 1324671, 5858296, 25908042, 114577112, 506711954, 2240910072, 9910320668, 43827932664, 193826995709, 857190882207, 3790886846546, 16765020932461, 74142526074589, 327891876477017, 1450086587978657 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
Pisot sequence T(x, y): a(0) = x, a(1) = y, a(n) = floor(a(n-1)^2/a(n-2)).
MATHEMATICA
RecurrenceTable[{a[0] == 2, a[1] == 9, a[n] == Floor[a[n - 1]^2/a[n - 2]]}, a, {n, 0, 30}] (* Bruno Berselli, Feb 04 2016 *)
PROG
(PARI) lista(nn) = {print1(x = 2, ", ", y = 9, ", "); for (n=1, nn, z = y^2\x; print1(z, ", "); x = y; y = z; ); } \\ Michel Marcus, Feb 04 2016
(Magma) Iv:=[2, 9]; [n le 2 select Iv[n] else Floor(Self(n-1)^2/Self(n-2)): n in [1..30]]; // Bruno Berselli, Feb 04 2016
(PARI) pisotT(nmax, a1, a2) = {
a=vector(nmax); a[1]=a1; a[2]=a2;
for(n=3, nmax, a[n] = floor(a[n-1]^2/a[n-2]));
a
}
pisotT(50, 2, 9) \\ Colin Barker, Jul 29 2016
CROSSREFS
See A008776 for definitions of Pisot sequences.
Sequence in context: A019066 A097070 A164033 * A107979 A021001 A231134
KEYWORD
nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 13 03:04 EDT 2024. Contains 372497 sequences. (Running on oeis4.)