OFFSET
2,4
COMMENTS
For the operation of taking the sequence of run-lengths of a finite sequence, runs-resistance is defined to be the number of applications required to reach a singleton.
EXAMPLE
Minimal representatives with each image are:
2: (0)
4: (0,0) -> (2)
5: (0,1) -> (1,1) -> (2)
9: (0,0,1) -> (2,1) -> (1,1) -> (2)
18: (0,0,1,0) -> (2,1,1) -> (1,2) -> (1,1) -> (2)
41: (0,1,0,0,1) -> (1,1,2,1) -> (2,1,1) -> (1,2) -> (1,1) -> (2)
150: (0,0,1,0,1,1,0) -> (2,1,1,2,1) -> (1,2,1,1) -> (1,1,2) -> (2,1) -> (1,1) -> (2)
MATHEMATICA
Table[Length[NestWhileList[Length/@Split[#]&, Rest[IntegerDigits[n, 2]], Length[#]>1&]]-1, {n, 2, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 25 2019
STATUS
approved