We're dividing 407252 by 31 
The aim is to understand the frequency of 31 in 407252.

Step 1:
31 goes into 4 0 times with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 31

Advancing to step 2:
40 divided by 31 is 1 with a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 31 from 40 leaves us with 9.
Bring next digit (7) of the dividend behind the 9 and repeat the process: 97 / 31

Let's proceed to step 3:
97 divided by 31 is 3 with a remainder of 4.
The number 3 becomes the next digit in our result. 
Result so far: 13.0
Deduct 93 from 97 and we're left with 4.
Grab the next digit (2) from the dividend, add it to 4, then carry on: 42 / 31

Let's proceed to step 4:
31 goes into 42 1 times with a remainder of 11.
Use 1 as the next digit of our solution. 
Result so far: 131.0
Deduct 31 from 42 and we're left with 11.
Bring next digit (5) of the dividend behind the 11 and repeat the process: 115 / 31

Going ahead to step 5:
When dividing 115 by 31, we get 3 with a remainder of 22.
Record the quotient 3 as the next digit in the result. 
Result so far: 1313.0
Subtracting 93 from 115 leaves us with 22.
Fetch the next digit (2) from the dividend, attach it to 22 and continue: 222 / 31

On to step 6:
31 goes into 222 7 times with a remainder of 5.
Use 7 as the next digit of our solution. 
Result so far: 13137.0
If we subtract 217 from 222, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 7:
If we divide 50 by 31, we get 1 and a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 13137.1
Deduct 31 from 50 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 8:
190 divided by 31 is 6 with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 13137.16
If we take 186 away from 190, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 9:
40 divided by 31 is 1 with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 13137.161
Subtracting 31 from 40 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 10:
The number 31 fits into 90 2 times, leaving a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 13137.1612
If we take 62 away from 90, 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.

Moving on to step 11:
When dividing 280 by 31, we get 9 with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 13137.16129
Subtracting 279 from 280 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 12:
31 goes into 10 0 times with a remainder of 10.
The next digit of our result is 0. 
Result so far: 13137.16129
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 13:
If we divide 100 by 31, we get 3 and a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 13137.1612903
Subtract 93 from 100 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 14:
The number 31 fits into 70 2 times, leaving a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 13137.16129032
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.

After the division, we end up with 13137.16129032 and a remainder of 8e-09.