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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A203531 Run lengths in Golay-Rudin-Shapiro sequence A020985. 2
3, 1, 2, 1, 4, 3, 1, 1, 3, 1, 2, 1, 1, 3, 3, 1, 4, 1, 2, 1, 4, 3, 1, 4, 1, 2, 1, 1, 3, 3, 1, 1, 3, 1, 2, 1, 4, 3, 1, 1, 3, 1, 2, 1, 1, 3, 3, 1, 1, 3, 1, 2, 1, 4, 3, 1, 4, 1, 2, 1, 1, 3, 3, 1, 4, 1, 2, 1, 4, 3, 1, 1, 3, 1, 2, 1, 1, 3, 3, 1, 4, 1, 2, 1, 4, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

COMMENTS

a(2*n) = length of n-th run of 1s; a(2*n+1) = length of n-th run of -1s.

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 0..10000

Eric Weisstein's World of Mathematics, Rudin-Shapiro Sequence

PROG

(Haskell)

import Data.List (group)

a203531 n = a203531_list !! n

a203531_list = map length $ group a020985_list

CROSSREFS

Sequence in context: A257915 A257904 A257980 * A324885 A046645 A284639

Adjacent sequences:  A203528 A203529 A203530 * A203532 A203533 A203534

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller, Jan 02 2012

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 19 08:23 EDT 2019. Contains 325155 sequences. (Running on oeis4.)