|
|
A131607
|
|
Pell companion numbers A001333 without last digit.
|
|
2
|
|
|
1, 4, 9, 23, 57, 139, 336, 811, 1960, 4732, 11424, 27580, 66585, 160752, 388089, 936931, 2261953, 5460839, 13183632, 31828103, 76839840, 185507784, 447855408, 1081218600, 2610292609, 6301803820, 15213900249, 36729604319, 88673108889, 214075822099, 516824753088
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
4,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x^4*(1 + x - 2*x^2 + x^3 + x^4) / ((1 - x)*(1 + x^2)*(1 - 2*x - x^2)*(1 - x^2 + x^4)).
a(n) = 3*a(n-1) - a(n-2) - a(n-3) - a(n-6) + 3*a(n-7) - a(n-8) - a(n-9) for n>12.
(End)
|
|
MATHEMATICA
|
Table[Floor[(((1 - Sqrt[2])^n + (1 + Sqrt[2])^n)/2)/10], {n, 4, 29}] (* Metin Sariyar, Jan 03 2020 *)
|
|
PROG
|
(PARI) a(n)={polcoef((1 - x) / (1 - 2*x - x^2) + O(x*x^n), n)\10} \\ Andrew Howroyd, Jan 02 2020
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
Offset changed and terms a(24) and beyond from Andrew Howroyd, Jan 02 2020
|
|
STATUS
|
approved
|
|
|
|