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!)
 A166542 a(n) = 6*n - a(n-1), with n>1, a(1)=2. 1
 2, 10, 8, 16, 14, 22, 20, 28, 26, 34, 32, 40, 38, 46, 44, 52, 50, 58, 56, 64, 62, 70, 68, 76, 74, 82, 80, 88, 86, 94, 92, 100, 98, 106, 104, 112, 110, 118, 116, 124, 122, 130, 128, 136, 134, 142, 140, 148, 146, 154, 152, 160, 158, 166, 164, 172, 170, 178, 176, 184 (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) = (6*n + 5*(-1)^n + 3)/2. - Paolo P. Lava, Nov 10 2009 G.f.: -x*(-2-8*x+4*x^2)/((1+x)*(x-1)^2). - Vincenzo Librandi, Sep 13 2013 From G. C. Greubel, May 16 2016:(Start) E.g.f.: (1/2)*(3*(1 + 2*x)*exp(x) + 5*exp(-x) - 8). a(n) = a(n-1) + a(n-2) - a(n-3). (End) a(n) = 2*A166517(n). - Philippe Deléham, Nov 29 2016 MATHEMATICA CoefficientList[Series[-(- 2 - 8 x + 4 x^2)/((1 + x) (x - 1)^2), {x, 0, 80}], x] (* Vincenzo Librandi, Sep 13 2013 *) LinearRecurrence[{1, 1, -1}, {2, 10, 8}, 50] (* G. C. Greubel, May 16 2016 *) PROG (MAGMA) [n eq 1 select 2 else 6*n-Self(n-1): n in [1..80]]; // Vincenzo Librandi, Sep 13 2013 CROSSREFS Sequence in context: A248061 A267500 A300016 * A316967 A189711 A092939 Adjacent sequences:  A166539 A166540 A166541 * A166543 A166544 A166545 KEYWORD nonn,easy AUTHOR Vincenzo Librandi, Oct 16 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 June 25 06:20 EDT 2021. Contains 345452 sequences. (Running on oeis4.)