login
A166033
a(n) = 11/4 +11*n/2 + 29*(-1)^n/4.
1
1, 21, 12, 32, 23, 43, 34, 54, 45, 65, 56, 76, 67, 87, 78, 98, 89, 109, 100, 120, 111, 131, 122, 142, 133, 153, 144, 164, 155, 175, 166, 186, 177, 197, 188, 208, 199, 219, 210, 230, 221, 241, 232, 252, 243, 263, 254, 274, 265, 285, 276, 296, 287, 307, 298, 318
OFFSET
1,2
FORMULA
a(n) = 11*n-a(n-1) with n>1, a(1)=1.
G.f.: -x*(-1-20*x+10*x^2) / ( (1+x)*(x-1)^2 ). - R. J. Mathar, Jan 05 2011
E.g.f.: (1/2)*((11*x + 20)*cosh(x) + (11*x - 9)*sinh(x) - 20). - G. C. Greubel, Apr 24 2016
MATHEMATICA
Table[11/4+11*n/2+29*(-1)^n/4, {n, 1, 60}] (* or *) LinearRecurrence[{1, 1, -1}, {1, 21, 12}, 60] (* Vincenzo Librandi, Mar 14 2012 *)
PROG
(Magma) [11/4+11*n/2+29*(-1)^n/4: n in [1..60]]; // Vincenzo Librandi, Mar 14 2012
CROSSREFS
Sequence in context: A258083 A260527 A260529 * A228092 A071262 A083466
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Oct 16 2009
EXTENSIONS
New definition from R. J. Mathar, Jan 05 2011
STATUS
approved