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!)
A133310 a(3n) = 2n+1, a(3n+1) = 2n+2, a(3n+2) = 2n+1. 2
1, 2, 1, 3, 4, 3, 5, 6, 5, 7, 8, 7, 9, 10, 9, 11, 12, 11, 13, 14, 13, 15, 16, 15, 17, 18, 17, 19, 20, 19, 21, 22, 21, 23, 24, 23, 25, 26, 25, 27, 28, 27, 29, 30, 29, 31, 32, 31, 33, 34, 33, 35, 36, 35, 37, 38, 37, 39, 40, 39, 41, 42, 41, 43, 44, 43, 45, 46, 45, 47, 48, 47, 49, 50 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
G.f.: ( 1+x-x^2+x^3 ) / ( (1+x+x^2)*(x-1)^2 ). - R. J. Mathar, May 23 2014
a(n) = (2/9)*(3*n+3+3*cos[2*(n-1)*Pi/3)-2*sqrt(3)*sin(2*(n-1)*Pi/3)). - Wesley Ivan Hurt, Sep 30 2017
MATHEMATICA
CoefficientList[Series[(1+x-x^2+x^3)/((1+x+x^2)*(x-1)^2), {x, 0, 50}], x] (* G. C. Greubel, Feb 10 2018 *)
LinearRecurrence[{1, 0, 1, -1}, {1, 2, 1, 3}, 74] (* Robert G. Wilson v, Feb 10 2018 *)
PROG
(PARI) x='x+O('x^70); Vec((1+x-x^2+x^3)/((1+x+x^2)*(x-1)^2)) \\ G. C. Greubel, Feb 10 2018
(Magma) Q:=Rationals(); R<x>:=PowerSeriesRing(Q, 70); Coefficients(R!((1+x-x^2+x^3)/((1+x+x^2)*(x-1)^2))) // G. C. Greubel, Feb 10 2018
CROSSREFS
Cf. A130823(1, 1, 1, 3, 3, 3).
Sequence in context: A324749 A022466 A144254 * A362563 A077608 A002124
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Oct 18 2007
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 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)