login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Equal-parity block sizes in sequence A117872.
2

%I #10 Aug 22 2013 10:16:00

%S 1,1,1,2,2,4,2,1,1,3,3,2,2,1,1,3,2,3,1,2,1,1,2,2,2,1,2,2,2,3,3,1,1,1,

%T 1,4,1,2,1,4,2,3,1,2,2,1,1,1,3,3,1,3,2,1,2,4,2,2,4,2,4,1,2,1,1,3,1,2,

%U 2,1,2,1,1,2,3,2,1,4,3,1,3,1,5,6,3,1,4,5,5,1,5,3,1,1,6,1,1,4,1,2,2,2,3,1,1,1,1,1,7,1,1,2,1,1,1,3,1,2,2,2,3,1,1,1,1

%N Equal-parity block sizes in sequence A117872.

%C From a suggestion due to D. R. Hofstadter.

%H Charles R Greathouse IV, <a href="/A126768/b126768.txt">Table of n, a(n) for n = 1..10000</a>

%o (Haskell)

%o import Data.List (group)

%o a126768 n = a126768_list !! n

%o a126768_list = map length $ group a117872_list

%o -- _Reinhard Zumkeller_, Aug 15 2013

%K nonn

%O 1,4

%A _Greg Huber_, Feb 16 2007

%E Corrected terms from _Greg Huber_, Aug 21 2013