Let's divide 854775 by 31
The aim is to understand the frequency of 31 in 854775.

Advancing to step 1:
If we divide 8 by 31, we get 0 and a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Fetch the next digit (5) from the dividend, attach it to 8 and continue: 85 / 31

Moving on to step 2:
If we divide 85 by 31, we get 2 and a remainder of 23.
The next digit of our result is 2. 
Result so far: 2.0
If we take 62 away from 85, we end up with 23.
Include the next digit (4) from the dividend after 23, then repeat: 234 / 31

Moving on to step 3:
When dividing 234 by 31, we get 7 with a remainder of 17.
Use 7 as the next digit of our solution. 
Result so far: 27.0
Subtract 217 from 234 to get 17.
Take the next digit (7) from the dividend and append it to 17, then repeat: 177 / 31

Advancing to step 4:
If we divide 177 by 31, we get 5 and a remainder of 22.
Write down 5 as next digit of the result. 
Result so far: 275.0
Deduct 155 from 177 and we're left with 22.
Grab the next digit (7) from the dividend, add it to 22, then carry on: 227 / 31

On to step 5:
31 can be fit into 227 7 times, resulting in a remainder of 10.
Use 7 as the next digit of our solution. 
Result so far: 2757.0
Deduct 217 from 227 and we're left with 10.
Append the next digit (5) from the dividend to 10 and continue with: 105 / 31

Going ahead to step 6:
If we divide 105 by 31, we get 3 and a remainder of 12.
Write down 3 as next digit of the result. 
Result so far: 27573.0
If we take 93 away from 105, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 7:
If we divide 120 by 31, we get 3 and a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 27573.3
Subtract 93 from 120 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 8:
If we divide 270 by 31, we get 8 and a remainder of 22.
The next digit of our result is 8. 
Result so far: 27573.38
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 9:
If we divide 220 by 31, we get 7 and a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 27573.387
Subtract 217 from 220 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 10:
The number 31 fits into 30 0 times, leaving a remainder of 30.
The next digit of our result is 0. 
Result so far: 27573.387
Deduct 0 from 30 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 11:
When dividing 300 by 31, we get 9 with a remainder of 21.
Use 9 as the next digit of our solution. 
Result so far: 27573.38709
The remainder is 21 after subtracting 279 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 12:
31 goes into 210 6 times with a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 27573.387096
Subtracting 186 from 210 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 13:
When dividing 240 by 31, we get 7 with a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 27573.3870967
If we take 217 away from 240, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 14:
31 goes into 230 7 times with a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 27573.38709677
Subtracting 217 from 230 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final outcome is 27573.38709677, with a leftover of 1.3e-08.