r/mathriddles 27d ago

Medium Collatz

A number will decrease in number if it has at least four digits and does not enter a cycle, as proven below: The number is represented in binary.

It must begin with 10 or 11. If it starts with 10 and the last two digits are not 11, then after multiplying by 3, the number of digits increases by 1, accounting for 3/8 of all possible combinations. Other numbers starting with 10 account for 5/8, and the number of digits increases by 2. If it ends with 11, after multiplying by 3 and adding 1, then dividing by 2 removes at least one digit, accounting for 1/2. If it ends with 001, at least two digits are removed, accounting for 1/4. Other numbers with at least three digits account for 1/4. If it does not enter a 4, 2, 1 cycle, the number generally decreases, and eventually it will enter a 4, 2, 1 cycle.

王子赫

0 Upvotes

9 comments sorted by

6

u/lizardpq 27d ago

What's the riddle?

7

u/mazzar 27d ago

I guess how many errors can you find?

1

u/FormulaDriven 27d ago

If it starts with 10 and the last two digits are not 11, then after multiplying by 3, the number of digits increases by 1

The 7-digit binary number 1011101 when multiplied by 3 gives 100010111 which has 9 digits.

2

u/Ok-Lobster-6013 19d ago

后两位不是11

2

u/Ok-Lobster-6013 19d ago

The last two digits are not 11

2

u/Ok-Lobster-6013 19d ago

The last two digits of 10 are not 11.

1

u/FormulaDriven 27d ago

Binary 1001 after two steps (n -> 3n+1, then n -> n/2) is 1110, so hasn't decreased and hasn't entered cycle.

Binary 1011 after two steps is 10001, so it's increased the number of digits and hasn't entered a cycle, and will increase again with the next step (n -> 3n + 1) to 110100.

So have I misunderstood your claim?

1

u/Ok-Lobster-6013 19d ago

对于每次是不确定的,但每次的数学期望是负的如果不进入其他循环就会最终向数学期望进行进入421

1

u/Ok-Lobster-6013 19d ago

For each iteration, the value is uncertain, but the expected value is negative each time. If it doesn't enter other loops, it will eventually move towards the expected value and enter 421.