login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A120324 Periodic sequence 0, 1, 0, 4, 0, 1. 0
0, 1, 0, 4, 0, 1, 0, 1, 0, 4, 0, 1, 0, 1, 0, 4, 0, 1, 0, 1, 0, 4, 0, 1, 0, 1, 0, 4, 0, 1, 0, 1, 0, 4, 0, 1, 0, 1, 0, 4, 0, 1, 0, 1, 0, 4, 0, 1, 0, 1, 0, 4, 0, 1, 0, 1, 0, 4, 0, 1, 0, 1, 0, 4, 0, 1 (list; graph; refs; listen; history; internal format)
OFFSET

0,4

FORMULA

a(n)=(sin(n*Pi/6)+sin(5*n*Pi/6))^2

EXAMPLE

a(0)=(sin(0)+sin(0))^2 = 0.

a(1)=(sin(Pi/6)+sin(5*Pi/6))^2 = (1/2+1/2)^2 = 1.

a(2)=(sin(Pi/3)+sin(5*Pi/3))^2 = ((3^.5)/2-(3^.5)/2)^2 = 0.

a(3)=(sin(Pi/2)+sin(5*Pi/2))^2 = (1+1)^2 = 4.

a(4)=(sin(2*Pi/3)+sin(10*Pi/3))^2 = ((3^.5)/2-(3^.5)/2)^2 = 0.

a(5)=(sin(5*Pi/6)+sin(25*Pi/6))^2 = (1/2+1/2)^2 = 1.

MAPLE

P:=proc(n) local i, j; for i from 0 by 1 to n do j:=(sin(i*Pi/6)+sin(5*i*Pi/6))^2; print(j); od; end: P(20);

CROSSREFS

Sequence in context: A199571 A036859 A036861 * A136630 A111728 A143784

Adjacent sequences:  A120321 A120322 A120323 * A120325 A120326 A120327

KEYWORD

easy,nonn

AUTHOR

Paolo P. Lava & Giorgio Balzarotti (paoloplava(AT)gmail.com), Jun 21 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 14:37 EST 2012. Contains 205930 sequences.