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

Going ahead to step 1:
31 goes into 4 0 times with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 31

Advancing to step 2:
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: 1.0
Subtracting 31 from 40 leaves us with 9.
Bring next digit (8) of the dividend behind the 9 and repeat the process: 98 / 31

Step 3:
98 divided by 31 is 3 with a remainder of 5.
Put 3 as the next digit of the answer. 
Result so far: 13.0
Subtract 93 from 98 to get 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 31

Advancing to step 4:
50 divided by 31 is 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 131.0
Deduct 31 from 50 and we're left with 19.
Grab the next digit (7) from the dividend, add it to 19, then carry on: 197 / 31

Step 5:
If we divide 197 by 31, we get 6 and a remainder of 11.
Use 6 as the next digit of our solution. 
Result so far: 1316.0
Subtracting 186 from 197 leaves us with 11.
Append the next digit (3) from the dividend to 11 and continue with: 113 / 31

On to step 6:
31 can be fit into 113 3 times, resulting in a remainder of 20.
The number 3 becomes the next digit in our result. 
Result so far: 13163.0
Deduct 93 from 113 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 7:
The number 31 fits into 200 6 times, leaving a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 13163.6
If we take 186 away from 200, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 8:
140 divided by 31 is 4 with a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 13163.64
Subtracting 124 from 140 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 9:
31 goes into 160 5 times with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 13163.645
The remainder is 5 after subtracting 155 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 10:
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: 13163.6451
Subtract 31 from 50 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Advancing to step 11:
If we divide 190 by 31, we get 6 and a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 13163.64516
If we subtract 186 from 190, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 12:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 13163.645161
Subtract 31 from 40 to get 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 13:
90 divided by 31 is 2 with a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 13163.6451612
Subtract 62 from 90 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 14:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 13163.64516129
Subtract 279 from 280 to 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.

The final outcome is 13163.64516129, with a leftover of 1e-09.