The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A166621 a(n) = 10*n - a(n-1), with n>1, a(1)=5. 1
 5, 15, 15, 25, 25, 35, 35, 45, 45, 55, 55, 65, 65, 75, 75, 85, 85, 95, 95, 105, 105, 115, 115, 125, 125, 135, 135, 145, 145, 155, 155, 165, 165, 175, 175, 185, 185, 195, 195, 205, 205, 215, 215, 225, 225, 235, 235, 245, 245, 255, 255, 265, 265, 275, 275, 285 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 LINKS Vincenzo Librandi, Table of n, a(n) for n = 1..1000 Index entries for linear recurrences with constant coefficients, signature (1,1,-1). FORMULA a(n) = (5/2)*(2*n + (-1)^n + 1). - Paolo P. Lava, Nov 10 2009 From Vincenzo Librandi, Sep 15 2013: (Start) G.f.: -x*(-5-10*x+5*x^2)/((1+x)*(x-1)^2). a(n) = a(n-1) + a(n-2) - a(n-3). (End) E.g.f.: 5*((1+x)*cosh(x) + x*sinh(x) - 1). - G. C. Greubel, May 18 2016 MATHEMATICA RecurrenceTable[{a[1]==5, a[n]==10n-a[n-1]}, a, {n, 60}] (* or *) CoefficientList[Series[-(- 5 - 10 x + 5 x^2) /((1 + x) (x - 1)^2), {x, 0, 60}], x] (* Vincenzo Librandi, Sep 15 2013 *) PROG (MAGMA) [n le 1 select (n+4) else 10*n-Self(n-1): n in [1..70] ]; // Vincenzo Librandi, Sep 15 2013 CROSSREFS Sequence in context: A309620 A291794 A321775 * A330082 A160275 A200858 Adjacent sequences:  A166618 A166619 A166620 * A166622 A166623 A166624 KEYWORD nonn,easy AUTHOR Vincenzo Librandi, Oct 18 2009 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified August 4 18:15 EDT 2021. Contains 346455 sequences. (Running on oeis4.)