A195016 a(n) = (n*(5*n+7)-(-1)^n+1)/2.
0, 7, 17, 34, 54, 81, 111, 148, 188, 235, 285, 342, 402, 469, 539, 616, 696, 783, 873, 970, 1070, 1177, 1287, 1404, 1524, 1651, 1781, 1918, 2058, 2205, 2355, 2512, 2672, 2839, 3009, 3186, 3366, 3553, 3743, 3940, 4140, 4347, 4557, 4774, 4994
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..10000
- Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).
Crossrefs
Programs
-
Magma
&cat[[n*t,(n+1)*t] where t is 10*n+7: n in [0..22]]; // Bruno Berselli, Oct 14 2011
-
Mathematica
LinearRecurrence[{2, 0, -2, 1}, {0, 7, 17, 34}, 50] (* Paolo Xausa, Feb 09 2024 *)
Formula
n*(10*n-3), if n >= 1, and (2*n+1)*(5*n+1)-1, if n >= 0, interleaved.
G.f.: x*(7+3*x)/((1+x)*(1-x)^3). - Bruno Berselli, Oct 14 2011
Extensions
Concise definition by Bruno Berselli, Oct 14 2011
Comments