This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A168381 a(n) = 4*n + 2*(-1)^n. 3
 2, 10, 10, 18, 18, 26, 26, 34, 34, 42, 42, 50, 50, 58, 58, 66, 66, 74, 74, 82, 82, 90, 90, 98, 98, 106, 106, 114, 114, 122, 122, 130, 130, 138, 138, 146, 146, 154, 154, 162, 162, 170, 170, 178, 178, 186, 186, 194, 194, 202, 202, 210, 210, 218, 218, 226, 226, 234, 234 (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) = 8*n - a(n-1) - 4, with n>1, a(1)=2. a(n) = 2*(-1)^n + 4*n. - Paolo P. Lava, Nov 27 2009 G.f.: 2*x*(1 + 4*x - x^2)/((1+x)*(x-1)^2). - Vincenzo Librandi, Sep 18 2013 a(n) = a(n-1) +a(n-2) -a(n-3). - Vincenzo Librandi, Sep 18 2013 From Bruno Berselli, Sep 18 2013: (Start) a(n) = 2*A163980(n). a(n) = 2 + 8*floor(n/2). (End) E.g.f.: 2*(1 - exp(x) + 2*x*exp(2*x))*exp(-x). - G. C. Greubel, Jul 19 2016 MATHEMATICA CoefficientList[Series[(2 + 8 x - 2 x^2)/((1 + x) (x -1)^2), {x, 0, 70}], x] (* Vincenzo Librandi, Sep 18 2013 *) PROG (MAGMA) [4*n +2*(-1)^n: n in [1..70]]; // Vincenzo Librandi, Sep 18 2013 CROSSREFS Cf. A163980. Sequence in context: A066556 A156556 A071808 * A212621 A156780 A206486 Adjacent sequences:  A168378 A168379 A168380 * A168382 A168383 A168384 KEYWORD nonn,easy,less AUTHOR Vincenzo Librandi, Nov 24 2009 EXTENSIONS Definition rewritten, using Lava's formula, by Vincenzo Librandi, Sep 18 2013 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 October 18 18:56 EDT 2019. Contains 328197 sequences. (Running on oeis4.)