login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A168203 a(n) = 4*n - a(n-1) + 1 with n>1, a(1)=0. 1
0, 9, 4, 13, 8, 17, 12, 21, 16, 25, 20, 29, 24, 33, 28, 37, 32, 41, 36, 45, 40, 49, 44, 53, 48, 57, 52, 61, 56, 65, 60, 69, 64, 73, 68, 77, 72, 81, 76, 85, 80, 89, 84, 93, 88, 97, 92, 101, 96, 105, 100, 109, 104, 113, 108, 117, 112, 121, 116, 125, 120, 129, 124, 133, 128, 137 (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) = (4*n + 3 + 7*(-1)^n)/2. - Jon E. Schoenfield, Jun 24 2010

G.f.: x^2*(9-5*x)/((1+x)*(1-x)^2). - Vincenzo Librandi, Feb 28 2012

E.g.f.: (1/2)*(7 - 10*exp(x) + (3 + 4*x)*exp(2*x))*exp(-x). - G. C. Greubel, Jul 15 2016

MATHEMATICA

LinearRecurrence[{1, 1, -1}, {0, 9, 4}, 60] (* Vincenzo Librandi, Feb 28 2012 *)

PROG

(MAGMA) I:=[0, 9, 4]; [n le 3 select I[n] else Self(n-1)+Self(n-2)-Self(n-3): n in [1..40]]; // Vincenzo Librandi, Feb 28 2012

CROSSREFS

Sequence in context: A255642 A088701 A153698 * A248310 A133597 A075066

Adjacent sequences:  A168200 A168201 A168202 * A168204 A168205 A168206

KEYWORD

nonn,easy

AUTHOR

Vincenzo Librandi, Nov 20 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 September 17 09:02 EDT 2019. Contains 327128 sequences. (Running on oeis4.)