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!)
A168213 a(n) = (11 + 18*n + 9*(-1)^n)/4. 2
5, 14, 14, 23, 23, 32, 32, 41, 41, 50, 50, 59, 59, 68, 68, 77, 77, 86, 86, 95, 95, 104, 104, 113, 113, 122, 122, 131, 131, 140, 140, 149, 149, 158, 158, 167, 167, 176, 176, 185, 185, 194, 194, 203, 203, 212, 212, 221, 221, 230, 230, 239, 239, 248, 248, 257, 257 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Essentially the same as A168418.
LINKS
FORMULA
From R. J. Mathar, Jan 05 2011: (Start)
a(n) = 9*n - a(n-1) + 1 for n > 1.
G.f.: x*(5 + 9*x - 5*x^2)/( (1+x)*(x-1)^2 ). (End)
E.g.f.: (1/4)*(9 - 20*exp(x) + (11 + 18*x)*exp(2*x))*exp(-x). - G. C. Greubel, Jul 16 2016
a(n) = a(n-1) + a(n-2) - a(n-3). - Wesley Ivan Hurt, Aug 17 2021
MAPLE
A168213:=n->(11 + 18*n + 9*(-1)^n)/4: seq(A168213(n), n=1..100); # Wesley Ivan Hurt, Apr 26 2017
MATHEMATICA
LinearRecurrence[{1, 1, -1}, {5, 14, 14}, 60] (* Vincenzo Librandi, Feb 28 2012 *)
PROG
(Magma) I:=[5, 14, 14]; [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
(PARI) a(n)=(11+18*n+9*(-1)^n)/4 \\ Charles R Greathouse IV, Jul 16 2016
CROSSREFS
Cf. A168418.
Sequence in context: A196363 A169811 A272970 * A175485 A174657 A231665
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 23:40 EDT 2024. Contains 371798 sequences. (Running on oeis4.)