|
|
A007893
|
|
A Kutz sequence.
|
|
1
|
|
|
1, 4, 9, 16, 1, 4, 9, 16, 25, 4, 9, 16, 25, 36, 9, 16, 25, 36, 49, 16, 25, 36, 49, 64, 25, 36, 49, 64, 81, 36, 49, 64, 81, 100, 49, 64, 81, 100, 121, 64, 81, 100, 121, 144, 81, 100, 121, 144, 169, 100, 121, 144, 169, 196, 121, 144, 169, 196, 225, 144, 169, 196
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,2,-2,0,0,0,-1,1).
|
|
FORMULA
|
The pattern is obvious!
G.f.: x*(1+3*x+5*x^2+7*x^3-15*x^4+x^5-x^6-3*x^7-5*x^8+9*x^9) / ((1-x)^3*(1+x+x^2+x^3+x^4)^2). - Colin Barker, Aug 05 2016
|
|
MATHEMATICA
|
LinearRecurrence[{1, 0, 0, 0, 2, -2, 0, 0, 0, -1, 1}, {1, 4, 9, 16, 1, 4, 9, 16, 25, 4, 9}, 80] (* or *) Join[ Range[4]^2, Flatten[Partition[Range[20]^2, 5, 1]]] (* Harvey P. Dale, May 11 2022 *)
|
|
PROG
|
(PARI) Vec(x*(1+3*x+5*x^2+7*x^3-15*x^4+x^5-x^6-3*x^7-5*x^8+9*x^9)/((1-x)^3*(1+x+x^2+x^3+x^4)^2) + O(x^60)) \\ Colin Barker, Aug 05 2016
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|