|
|
A010910
|
|
Pisot sequence E(4,27): a(n) = floor(a(n-1)^2/a(n-2)+1/2) for n>1, a(0)=4, a(1)=27.
|
|
1
|
|
|
4, 27, 182, 1227, 8272, 55767, 375962, 2534607, 17087452, 115197747, 776623742, 5235731187, 35297505832, 237963690927, 1604269674722, 10815436502967, 72913967391412, 491560986863307, 3313935758136902, 22341419483137947, 150618195689512192, 1015416271552762887
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
FORMULA
|
a(n) = (((3-sqrt(14))^n*(-15+4*sqrt(14))+(3+sqrt(14))^n*(15+4*sqrt(14))))/(2*sqrt(14)).
a(n) = 6*a(n-1)+5*a(n-2) for n>1.
G.f.: (4+3*x) / (1-6*x-5*x^2).
(End)
Theorem: a(n) = 6 a(n - 1) + 5 a(n - 2) for n >= 2. Proved using the PtoRv program of Ekhad-Sloane-Zeilberger, and implies the above conjectures. - N. J. A. Sloane, Sep 09 2016
|
|
MATHEMATICA
|
RecurrenceTable[{a[0] == 4, a[1] == 27, a[n] == Floor[a[n - 1]^2/a[n - 2] + 1/2]}, a, {n, 0, 25}] (* Bruno Berselli, Sep 03 2013 *)
nxt[{a_, b_}]:={b, Floor[b^2/a+1/2]}; NestList[nxt, {4, 27}, 30][[All, 1]] (* Harvey P. Dale, May 13 2018 *)
|
|
PROG
|
(Magma) Exy:=[4, 27]; [n le 2 select Exy[n] else Floor(Self(n-1)^2/Self(n-2)+1/2): n in [1..25]]; // Bruno Berselli, Sep 03 2013
(PARI) Vec((4+3*x)/(1-6*x-5*x^2) + O(x^25)) \\ Jinyuan Wang, Mar 10 2020
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|