OFFSET
0,1
COMMENTS
The sequence (the first in the family) is present as a family of single interleaved sequence of which are separated or factored out of the larger sequence to give individual sequences. The larger sequence produces two smaller interleaved sequences where one of them has the formula above and a second interleaved sequence. There are a total of two sequences in this family.
LINKS
Eddie Gutierrez New Interleaved Sequences Part E on oddwheel.com Section B1 Line No. 25 (square_sequencesV.html) Part E.
Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).
FORMULA
MATHEMATICA
Flatten[Table[{20 n^2 - 40 n + 10, 20 n^2 - 20 n + 10}, {n, 0, 23}]] (* Bruno Berselli, Sep 27 2012 *)
LinearRecurrence[{2, 0, -2, 1}, {10, 10, -10, 10}, 60] (* Harvey P. Dale, Sep 18 2020 *)
PROG
(Magma) &cat[[20*k^2-40*k+10, 20*k^2-20*k+10]: k in [0..23]]; // Bruno Berselli, Sep 27 2012
(PARI) vector(47, n, k=(n-1)\2; if(n%2, 20*k^2-40*k+10, 20*k^2-20*k+10)) \\ Bruno Berselli, Sep 28 2012
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Eddie Gutierrez, Sep 18 2012
EXTENSIONS
Definition rewritten by Bruno Berselli, Oct 25 2012
STATUS
approved