Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A120325
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A120325 Periodic sequence 0, 0, 1, 0, 1, 0. +0
3
0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0 (list; graph; listen)
OFFSET

0,1

FORMULA

a(n)=(1/3)*(sin(n*Pi/6)+sin(7*n*Pi/6))^2, with n>=0.

G.f.: x^2(1+x^2)/((1+x)(1-x)(1+x+x^2)(1-x+x^2)). a(n+6)=a(n). [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Nov 22 2008]

EXAMPLE

a(0)= (1/3)*(sin(0)+sin(0))^2 = 0.

a(1)= (1/3)*(sin(Pi/6)+sin(7*Pi/6))^2 = (1/3)*(1/2-1/2)^2 = 0.

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

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

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

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

MAPLE

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

CROSSREFS

Sequence in context: A059125 A111406 A156731 this_sequence A144598 A144606 A060510

Adjacent sequences: A120322 A120323 A120324 this_sequence A120326 A120327 A120328

KEYWORD

easy,nonn

AUTHOR

Paolo P. Lava and 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 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research