|
|
A138380
|
|
First differences of A138377.
|
|
3
|
|
|
1, 2, -1, -2, -4, -8, 4, 8, 16, 32, -16, -32, -64, -128, 64, 128, 256, 512, -256, -512, -1024, -2048, 1024, 2048, 4096, 8192, -4096, -8192, -16384, -32768, 16384, 32768, 65536, 131072, -65536, -131072, -262144, -524288, 262144, 524288, 1048576, 2097152
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
a(n) = -4*a(n-4) for n>3.
G.f.: (1-x)*(1+x)*(1+2*x) / ((1-2*x+2*x^2)*(1+2*x+2*x^2)).
(End)
|
|
MATHEMATICA
|
Differences[LinearRecurrence[{0, 0, 0, -4}, {0, 1, 3, 2}, 60]] (* Harvey P. Dale, Mar 19 2012 *)
LinearRecurrence[{0, 0, 0, -4}, {1, 2, -1, -2}, 59] (* Ray Chandler, Aug 03 2015 *)
|
|
PROG
|
(PARI) Vec((1-x)*(1+x)*(1+2*x)/((1-2*x+2*x^2)*(1+2*x+2*x^2)) + O(x^100)) \\ Colin Barker, Dec 01 2015
|
|
CROSSREFS
|
|
|
KEYWORD
|
sign,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|