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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A166526 a(n) = 12*n - a(n-1), with n>1, a(1)=1. 1
1, 23, 13, 35, 25, 47, 37, 59, 49, 71, 61, 83, 73, 95, 85, 107, 97, 119, 109, 131, 121, 143, 133, 155, 145, 167, 157, 179, 169, 191, 181, 203, 193, 215, 205, 227, 217, 239, 229, 251, 241, 263, 253, 275, 265, 287, 277, 299, 289, 311, 301, 323, 313, 335, 325, 347 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

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 + 8*(-1)^n + 3. - Paolo P. Lava, Nov 10 2009

a(n) = a(n-1) + a(n-2) - a(n-3), a(1)=1, a(2)=23, a(3)=13, for n>3. - Harvey P. Dale, Aug 10 2011

G.f.: x*(1+22*x-11*x^2)/((x-1)^2*(1+x)). - Harvey P. Dale, Aug 10 2011

E.g.f.: 8*exp(-x) + 3*(1 + 2*x)*exp(x) - 11. - G. C. Greubel, May 16 2016

MATHEMATICA

RecurrenceTable[{a[1]==1, a[n]==12n-a[n-1]}, a[n], {n, 60}] (* or *) LinearRecurrence[{1, 1, -1}, {1, 23, 13}, 60] (* Harvey P. Dale, Aug 10 2011 *)

CoefficientList[Series[(1 + 22 x - 11 x^2) / ((x - 1)^2 (1 + x)), {x, 0, 60}], x] (* Vincenzo Librandi, Sep 13 2013 *)

PROG

(MAGMA) [n eq 1 select 1 else 12*n-Self(n-1): n in [1..80]]; // Vincenzo Librandi, Sep 13 2013

CROSSREFS

Sequence in context: A323137 A083154 A002549 * A070838 A199713 A064735

Adjacent sequences:  A166523 A166524 A166525 * A166527 A166528 A166529

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 24 01:07 EDT 2021. Contains 345404 sequences. (Running on oeis4.)