A216853 18k^2-12k-7 interleaved with 18k^2+6k+5 for k>=0.
-7, 5, -1, 29, 41, 89, 119, 185, 233, 317, 383, 485, 569, 689, 791, 929, 1049, 1205, 1343, 1517, 1673, 1865, 2039, 2249, 2441, 2669, 2879, 3125, 3353, 3617, 3863, 4145, 4409, 4709, 4991, 5309, 5609, 5945, 6263, 6617, 6953, 7325, 7679, 8069, 8441, 8849
Offset: 0
Links
- Eddie Gutierrez New Interleaved Sequences Part B on oddwheel.com, Section B1 Line No. 22 (square_sequencesII.html) Part B
- Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).
Programs
-
Magma
&cat[[18*k^2-12*k-7, 18*k^2+6*k+5]: k in [0..22]]; // Bruno Berselli, Oct 05 2012
-
Mathematica
Flatten[Table[{18 n^2 - 12 n - 7, 18 n^2 + 6 n + 5}, {n, 0, 22}]] (* Bruno Berselli, Oct 05 2012 *)
-
PARI
vector(46, n, k=(n-1)\2; if(n%2, 18*k^2-12*k-7, 18*k^2+6*k+5)) \\ Bruno Berselli, Oct 05 2012
Formula
G.f.: -(7-19*x+11*x^2-17*x^3)/((1+x)*(1-x)^3). - Bruno Berselli, Oct 05 2012
a(n) = (6*n*(3*n-4)-27*(-1)^n-1)/4. - Bruno Berselli, Oct 05 2012
Extensions
Definition rewritten by Bruno Berselli, Oct 25 2012
Comments