login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A166523 a(n) = 8*n - a(n-1), with n>1, a(1)=1. 1
1, 15, 9, 23, 17, 31, 25, 39, 33, 47, 41, 55, 49, 63, 57, 71, 65, 79, 73, 87, 81, 95, 89, 103, 97, 111, 105, 119, 113, 127, 121, 135, 129, 143, 137, 151, 145, 159, 153, 167, 161, 175, 169, 183, 177, 191, 185, 199, 193, 207, 201, 215, 209, 223, 217, 231, 225, 239, 233 (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) = 2+5*(-1)^n+4*n. - Paolo P. Lava, Nov 10 2009

G.f. -x*(-1-14*x+7*x^2) / ( (1+x)*(x-1)^2 ). - R. J. Mathar, Mar 08 2011

From G. C. Greubel, May 16 2016: (Start)

E.g.f.: 5*exp(-x) + 2*(1 + 2*x)*exp(x) - 7.

a(n) = a(n-1) + a(n-2) - a(n-3). (End)

MATHEMATICA

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

PROG

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

CROSSREFS

Sequence in context: A182165 A139725 A009929 * A123542 A215236 A040212

Adjacent sequences:  A166520 A166521 A166522 * A166524 A166525 A166526

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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 9 21:08 EDT 2022. Contains 356026 sequences. (Running on oeis4.)