login
This site is supported by donations 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

COMMENTS

Terms of the simple continued fraction of 19/(2*sqrt(210)-17). Decimal expansion of 334/3003. [Paolo P. Lava, Aug 05 2009]

LINKS

Table of n, a(n) for n=0..104.

Index entries for linear recurrences with constant coefficients, signature (1,0,-1,1).

FORMULA

a(n) = (1/30)*(8*(n mod 6)+3*((n+1) mod 6)+3*((n+2) mod 6)-2*((n+3) mod 6)+3*((n+4) mod 6)+3*((n+5) mod 6)). - Paolo P. Lava, Dec 06 2007

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

Adjacent sequences:  A135262 A135263 A135264 * A135266 A135267 A135268

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 18 17:13 EDT 2019. Contains 328186 sequences. (Running on oeis4.)