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!)
A135265 Period 6: repeat [1, 1, 1, 2, 2, 2]. 4
1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
G.f.: (1+2*x^3)/((1-x)*(1+x)*(1-x+x^2)). [Jaume Oliver Lafont, Aug 30 2009]
a(n) = 3/2 - cos(Pi*n/3)/3 - sin(Pi*n/3)/sqrt(3) - (-1)^n/6. - R. J. Mathar, Oct 08 2011
a(n) = 1+(1-(-1)^floor(n/3))/2. [Bruno Berselli, Jul 12 2013]
a(n) = a(n-1) - a(n-3) + a(n-4) for n>3. - Wesley Ivan Hurt, Jun 20 2016
MAPLE
A135265:=n->[1, 1, 1, 2, 2, 2][(n mod 6)+1]: seq(A135265(n), n=0..100); # Wesley Ivan Hurt, Jun 20 2016
MATHEMATICA
PadRight[{}, 100, {1, 1, 1, 2, 2, 2}] (* Wesley Ivan Hurt, Jun 20 2016 *)
PROG
(PARI) a(n)=[1, 1, 1, 2, 2, 2][n%6+1] \\ Charles R Greathouse IV, Jun 02 2011
(Magma) &cat[[1, 1, 1, 2, 2, 2]^^20]; // Wesley Ivan Hurt, Jun 20 2016
CROSSREFS
Cf. A178331 (decimal expansion of (17+2*sqrt(210))/29). [Klaus Brockhaus, May 25 2010]
Sequence in context: A172497 A211226 A306366 * A144110 A076490 A320278
KEYWORD
nonn,easy,less
AUTHOR
Paul Curtz, Dec 02 2007
EXTENSIONS
More terms from Klaus Brockhaus, May 25 2010
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 18 10:28 EDT 2024. Contains 371779 sequences. (Running on oeis4.)