Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A120324
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A120324 Periodic sequence 0, 1, 0, 4, 0, 1. +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, 0, 1, 0, 4, 0, 1 (list; graph; listen)
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: A115633 A036859 A036861 this_sequence A136630 A111728 A143784

Adjacent sequences: A120321 A120322 A120323 this_sequence A120325 A120326 A120327

KEYWORD

easy,nonn

AUTHOR

Paolo P. Lava & Giorgio Balzarotti (ppl(AT)spl.at), Jun 21 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 30 13:13 EST 2009. Contains 167758 sequences.


AT&T Labs Research