We look at the division of 935112 by 31 
The aim is to understand the frequency of 31 in 935112.

Let's proceed to step 1:
If we divide 9 by 31, we get 0 and a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 9 and we're left with 9.
Append the next digit (3) from the dividend to 9 and continue with: 93 / 31

Advancing to step 2:
93 divided by 31 is 3 with a remainder of 0.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we subtract 93 from 93, we get 0.
Include the next digit (5) from the dividend after 0, then repeat: 5 / 31

On to step 3:
31 can be fit into 5 0 times, resulting in a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 30.0
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 31

Going ahead to step 4:
The number 31 fits into 51 1 times, leaving a remainder of 20.
The next digit of our result is 1. 
Result so far: 301.0
Subtracting 31 from 51 leaves us with 20.
Grab the next digit (1) from the dividend, add it to 20, then carry on: 201 / 31

Advancing to step 5:
31 can be fit into 201 6 times, resulting in a remainder of 15.
Record the quotient 6 as the next digit in the result. 
Result so far: 3016.0
The remainder is 15 after subtracting 186 from 201.
Include the next digit (2) from the dividend after 15, then repeat: 152 / 31

Advancing to step 6:
When dividing 152 by 31, we get 4 with a remainder of 28.
Record the quotient 4 as the next digit in the result. 
Result so far: 30164.0
If we take 124 away from 152, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 7:
If we divide 280 by 31, we get 9 and a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 30164.9
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 8:
31 can be fit into 10 0 times, resulting in a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 30164.9
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 9:
100 divided by 31 is 3 with a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 30164.903
Deduct 93 from 100 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 10:
70 divided by 31 is 2 with a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 30164.9032
Subtracting 62 from 70 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 11:
31 can be fit into 80 2 times, resulting in a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 30164.90322
Deduct 62 from 80 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The final result is 30164.90322 with a remainder of 1.8e-05.