OFFSET
0,1
COMMENTS
The sequence is present as a family of single interleaved sequence of which there are many which are separated or factored out to give individual sequences. The larger sequence produces two smaller interleaved sequences where one of them has the formulas above and the other interleaved sequence has the formulas (4n^2 + 4n -1) and (4n^2+1). The latter interleaved sequence is A214345.
LINKS
Eddie Gutierrez New Interleaved Sequences Part A on oddwheel.com, Section B1 Line No. 21 (square_sequencesI.html) Part A
Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).
FORMULA
G.f.: 2*(1-x-3*x^2+5*x^3)/((1+x)*(1-x)^3). [Bruno Berselli, Sep 30 2012]
a(n) = (1/2)*(2*n*(n-4)-3*(-1)^n+7). [Bruno Berselli, Sep 30 2012]
MATHEMATICA
Flatten[Table[{4 n^2 - 8 n + 2, 4 n^2 - 4 n + 2}, {n, 0, 25}]] (* Bruno Berselli, Sep 30 2012 *)
LinearRecurrence[{2, 0, -2, 1}, {2, 2, -2, 2}, 60] (* Harvey P. Dale, Jul 18 2020 *)
PROG
(Magma) &cat[[4*k^2-8*k+2, 4*k^2-4*k+2]: k in [0..25]]; // Bruno Berselli, Sep 30 2012
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Eddie Gutierrez, Sep 17 2012
EXTENSIONS
Definition rewritten by Bruno Berselli, Oct 25 2012
STATUS
approved