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

On to step 1:
7 divided by 31 is 0 with a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Include the next digit (4) from the dividend after 7, then repeat: 74 / 31

Moving on to step 2:
When dividing 74 by 31, we get 2 with a remainder of 12.
The next digit of our result is 2. 
Result so far: 2.0
If we subtract 62 from 74, we get 12.
Append the next digit (6) from the dividend to 12 and continue with: 126 / 31

Let's proceed to step 3:
The number 31 fits into 126 4 times, leaving a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 24.0
Subtract 124 from 126 to get 2.
Grab the next digit (3) from the dividend, add it to 2, then carry on: 23 / 31

Step 4:
The number 31 fits into 23 0 times, leaving a remainder of 23.
The next digit of our result is 0. 
Result so far: 240.0
If we take 0 away from 23, we end up with 23.
Bring next digit (8) of the dividend behind the 23 and repeat the process: 238 / 31

Advancing to step 5:
If we divide 238 by 31, we get 7 and a remainder of 21.
The next digit of our result is 7. 
Result so far: 2407.0
Subtracting 217 from 238 leaves us with 21.
Bring next digit (7) of the dividend behind the 21 and repeat the process: 217 / 31

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

Advancing to step 7:
31 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 24077.0
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
0 divided by 31 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 24077.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 24077.0, with a leftover of 0.0.