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!)
A168321 a(n) = n +6 - a(n-1), with a(1) = 0. 1
0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17, 10, 18, 11, 19, 12, 20, 13, 21, 14, 22, 15, 23, 16, 24, 17, 25, 18, 26, 19, 27, 20, 28, 21, 29, 22, 30, 23, 31, 24, 32, 25, 33, 26, 34, 27, 35, 28, 36, 29, 37, 30, 38, 31, 39, 32, 40, 33, 41, 34, 42, 35, 43, 36 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
From R. J. Mathar, Nov 23 2009: (Start)
a(n) = a(n-1) + a(n-2) - a(n-3).
a(n) = (13 + 15*(-1)^n + 2*n)/4.
G.f.: x^2*(8 - 7*x)/((1+x)*(1-x)^2). (End)
E.g.f.: (1/4)*(15 - 28*exp(x) + (13 + 2*x)*exp(2*x))*exp(-x). - G. C. Greubel, Jul 17 2016
MATHEMATICA
a=7; Table[a=n-a, {n, a, 200}]
LinearRecurrence[{1, 1, -1}, {0, 8, 1}, 50] (* G. C. Greubel, Jul 17 2016 *)
PROG
(Magma) [(13+15*(-1)^n+2*n)/4: n in [1..80]]; // Vincenzo Librandi, Jul 18 2016
CROSSREFS
Sequence in context: A308043 A286253 A198674 * A242047 A176455 A225667
KEYWORD
nonn,less
AUTHOR
EXTENSIONS
NAME adapted to offset. - R. J. Mathar, Jun 19 2021
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 April 23 20:33 EDT 2024. Contains 371916 sequences. (Running on oeis4.)