A175828 a(n) = (n*(6*n+1)+(n+2)*(-1)^n)/2.
1, 2, 15, 26, 53, 74, 115, 146, 201, 242, 311, 362, 445, 506, 603, 674, 785, 866, 991, 1082, 1221, 1322, 1475, 1586, 1753, 1874, 2055, 2186, 2381, 2522, 2731, 2882, 3105, 3266, 3503, 3674, 3925, 4106, 4371, 4562, 4841, 5042, 5335, 5546, 5853, 6074
Offset: 0
Links
- Bruno Berselli, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
Programs
-
Magma
[(n*(6*n+1)+(n+2)*(-1)^n)/2: n in [0..50]];
-
Magma
I:=[1,2,15,26,53]; [n le 5 select I[n] else Self(n-1)+2*Self(n-2)-2*Self(n-3)-Self(n-4)+Self(n-5): n in [1..50]]; // Vincenzo Librandi, Aug 19 2013
-
Mathematica
Table[(n (6 n + 1) + (n + 2) (-1)^n)/2, {n, 0, 50}] CoefficientList[Series[(1 + x + 11 x^2 + 9 x^3 + 2 x^4) / ((1 + x)^2 (1 - x)^3), {x, 0, 50}], x] (* Vincenzo Librandi, Aug 19 2013 *) LinearRecurrence[{1,2,-2,-1,1},{1,2,15,26,53},70] (* Harvey P. Dale, Jul 03 2019 *)
Comments