|
|
A010902
|
|
Pisot sequence E(14,23), a(n) = floor( a(n-1)^2/a(n-2)+1/2 ).
|
|
2
|
|
|
14, 23, 38, 63, 104, 172, 284, 469, 775, 1281, 2117, 3499, 5783, 9558, 15797, 26109, 43152, 71320, 117875, 194819, 321989, 532170, 879548, 1453680, 2402581, 3970885, 6562912, 10846905, 17927308, 29629500, 48970390, 80936199, 133767942, 221086022, 365401668
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
FORMULA
|
It is known (Boyd, 1977) that this sequence does not satisfy a linear recurrence. - N. J. A. Sloane, Aug 07 2016
|
|
MATHEMATICA
|
RecurrenceTable[{a[1] == 14, a[2] == 23, a[n] == Floor[a[n-1]^2/a[n-2]+1/2]}, a, {n, 40}] (* Vincenzo Librandi, Aug 09 2016 *)
|
|
PROG
|
(PARI) pisotE(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]+1/2));
a
}
(Python)
a, b = 14, 23
for i in range(1000):
c, d = divmod(b**2, a)
a, b = b, c + (0 if 2*d < a else 1)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|