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!)
A146761 Period 6: repeat [0, 0, 6, 6, 3, 3]. 1
0, 0, 6, 6, 3, 3, 0, 0, 6, 6, 3, 3, 0, 0, 6, 6, 3, 3, 0, 0, 6, 6, 3, 3, 0, 0, 6, 6, 3, 3, 0, 0, 6, 6, 3, 3, 0, 0, 6, 6, 3, 3, 0, 0, 6, 6, 3, 3, 0, 0, 6, 6, 3, 3, 0, 0, 6, 6, 3, 3, 0, 0, 6, 6, 3, 3, 0, 0, 6, 6, 3, 3, 0, 0, 6, 6, 3, 3, 0, 0, 6, 6, 3, 3, 0, 0, 6 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Equals A002798 mod 9.
LINKS
FORMULA
From Richard Choulet, Dec 02 2008: (Start)
a(n+6) = a(n) with a(0)=a(1)=0, a(2)=a(3)=6, a(4)=a(5)=3.
O.g.f: f(z)=a(0)+a(1)*z+...=((6*z^2+3*z^4)/((1-z)*(1+z+z^2)*(1-z+z^2))).
a(n) = 3-sqrt(3)*sin(2*Pi*n/3)-3*cos(Pi*n/3). (End)
a(n) = a(n-1) - a(n-2) + a(n-3) - a(n-4) + a(n-5) for n>4. - Wesley Ivan Hurt, Jun 18 2016
MAPLE
A146761:=n->[0, 0, 6, 6, 3, 3][(n mod 6)+1]: seq(A146761(n), n=0..100); # Wesley Ivan Hurt, Jun 18 2016
MATHEMATICA
PadRight[{}, 108, {0, 0, 6, 6, 3, 3}] (* Harvey P. Dale, May 01 2012 *)
PROG
(Magma) &cat[[0, 0, 6, 6, 3, 3]^^20]; // Wesley Ivan Hurt, Jun 18 2016
CROSSREFS
Cf. A002798.
Sequence in context: A154006 A143080 A011484 * A010498 A339083 A240502
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Nov 02 2008
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 19:59 EDT 2024. Contains 371963 sequences. (Running on oeis4.)