Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A096365
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A096365 Maximum number of iterations of the RUNS transform needed to reduce any binary sequence of length n to a sequence of length 1. +0
1
0, 2, 3, 4, 5, 5, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9 (list; graph; listen)
OFFSET

1,2

COMMENT

The RUNS transform maps a finite word (or sequence) x to the (finite) sequence y whose i-th term is the length of the i-th subsequence of consecutive identical terms of x. (Example: RUNS{1,2,2,2,1,1,3,3,1}={1,3,2,2,1})

EXAMPLE

The following example shows that a(21)>=9:

x={100110100100110110100}

RUNS(x)={12211212212112}

RUNS^2(x)={1221121121}

RUNS^3(x)={1221211}

RUNS^4(x)={12112}

RUNS^5(x)={1121}

RUNS^6(x)={211}

RUNS^7(x)={12}

RUNS^8(x)={11}

RUNS^9(x)={2}

Since calculation shows that no other binary sequence of length 21 requires more than 9 iterations of RUNS to reduce it to a single term, we have a(21)=9.

CROSSREFS

Sequence in context: A133344 A091334 A025280 this_sequence A007600 A091333 A005245

Adjacent sequences: A096362 A096363 A096364 this_sequence A096366 A096367 A096368

KEYWORD

nonn

AUTHOR

John W. Layman (layman(AT)math.vt.edu), Jul 01 2004

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 July 26 23:19 EDT 2008. Contains 142293 sequences.


AT&T Labs Research