OFFSET
1,3
COMMENTS
For the operation of shortening all runs by 1, cuts-resistance is defined to be the number of applications required to reach an empty word.
Also numbers whose binary expansion is a balanced word (see A027383 for definition).
Also numbers whose binary expansion has all run-lengths 1 or 2 and whose sequence of run-lengths has no odd-length run of 1's sandwiched between two 2's.
EXAMPLE
The sequence of terms together with their binary expansions begins:
0:
1: 1
2: 10
3: 11
4: 100
5: 101
6: 110
9: 1001
10: 1010
11: 1011
12: 1100
13: 1101
18: 10010
19: 10011
20: 10100
21: 10101
22: 10110
25: 11001
26: 11010
37: 100101
38: 100110
MATHEMATICA
degdep[q_]:=Length[NestWhileList[Join@@Rest/@Split[#]&, q, Length[#]>0&]]-1;
Select[Range[0, 100], degdep[IntegerDigits[#, 2]]<=2&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 27 2019
STATUS
approved