|
|
A181389
|
|
Absolute difference between (sum of previous terms) and (n-th-even square) with a(1) = 2.
|
|
1
|
|
|
2, 2, 0, 12, 20, 28, 36, 44, 52, 60, 68, 76, 84, 92, 100, 108, 116, 124, 132, 140, 148, 156, 164, 172, 180, 188, 196, 204, 212, 220, 228, 236, 244, 252, 260, 268, 276, 284, 292, 300, 308, 316, 324, 332, 340, 348, 356, 364, 372, 380, 388, 396, 404, 412, 420
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
E.g.f.: 20 + 4*exp(x)*(2*x - 5) + x*(42 + (9 - 2*x)*x)/3. - Stefano Spezia, Jan 03 2023
Sum_{n>=4} (-1)^n/a(n) = (4-Pi)/16. - Amiram Eldar, Jan 08 2023
|
|
MAPLE
|
|
|
MATHEMATICA
|
CoefficientList[Series[(-2*x*(-1 + x + x^2 - 7*x^3 + 2*x^4))/(-1 + x)^2, {x, 0, 50}], x] (* G. C. Greubel, Feb 22 2017 *)
LinearRecurrence[{2, -1}, {2, 2, 0, 12, 20}, 70] (* Harvey P. Dale, Feb 13 2022 *)
|
|
PROG
|
(PARI) my(x='x+O('x^50)); Vec((-2*x*(-1 + x + x^2 - 7*x^3 + 2*x^4))/(-1 + x)^2) \\ G. C. Greubel, Feb 22 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|