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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A130198 Single paradiddlde. In percussion, the paradiddle is a four-note drum sticking pattern consisting of two alternating notes followed by two notes on the same hand. 1
0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1 (list; graph; refs; listen; history; internal format)
OFFSET

0,1

COMMENTS

Also the binary expansion of the constant 5/17 = 2^(-2)+2^(-5)+2^(-7)+... [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Mar 27 2009]

LINKS

Wikipedia, Paradiddle

FORMULA

a(n)=(1/56)*{8*(n mod 8)+[(n+1) mod 8]-6*[(n+2) mod 8]+8*[(n+3) mod 8]-6*[(n+4) mod 8]+[(n+5) mod 8]+8*[(n+6) mod 8]-6*[(n+7) mod 8]}, with n>=0. - Paolo P. Lava (paoloplava(AT)gmail.com), Nov 09 2007

a(n)=a(n-8)=a(n-1)-a(n-4)+a(n-5). G.f.: -x*(1+x^3-x)/((x-1)*(1+x^4). [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Mar 27 2009]

PROG

(PARI) a(n)=((n%8>3)+(n%4==1))%2 [From Jaume Oliver Lafont (joliverlafont(AT)gmail.com), Mar 19 2009]

(PARI) a(n)=210\2^(n%8)%2; [From Jaume Oliver Lafont (joliverlafont(AT)gmail.com), Mar 24 2009]

CROSSREFS

Cf. A121262, A131078. [From Jaume Oliver Lafont (joliverlafont(AT)gmail.com), Mar 19 2009]

Sequence in context: A059620 A083651 A111748 * A104893 A104894 A168393

Adjacent sequences:  A130195 A130196 A130197 * A130199 A130200 A130201

KEYWORD

nonn

AUTHOR

Simone Severini (simoseve(AT)gmail.com), May 16 2007

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 14 23:53 EST 2012. Contains 205689 sequences.