|
|
A122573
|
|
Expansion of x*(1 + x)*(1 - 3*x^2)/(1 - 4*x^2 + x^4).
|
|
1
|
|
|
1, 1, 1, 1, 3, 3, 11, 11, 41, 41, 153, 153, 571, 571, 2131, 2131, 7953, 7953, 29681, 29681, 110771, 110771, 413403, 413403, 1542841, 1542841, 5757961, 5757961, 21489003, 21489003, 80198051, 80198051, 299303201, 299303201, 1117014753
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,5
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1 + x)*(1 - 3*x^2)/(1 - 4*x^2 + x^4).
a(n) = 3*b(n) + b(n-1) - 11*b(n-2) - 3*b(n-3), where a(0) = a(1) = 1, b(n) = (1/2)*(1 + (-1)^n)*c((n+2)/2), and c(n) = ((2+sqrt(3))^n - (2-sqrt(3))^n)/(2*sqrt(3)) (A001353). - G. C. Greubel, Jul 10 2021
|
|
PROG
|
(Magma) [n le 4 select 1 else 4*Self(n-2) - Self(n-4): n in [1..41]]; // G. C. Greubel, Jul 10 2021
(Sage)
def a(n): return 1 if (n<5) else 4*a(n-2) - a(n-4)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|