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

Let's proceed 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
The remainder is 4 after subtracting 0 from 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 31

Going ahead to step 2:
31 goes into 40 1 times with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 31 away from 40, we end up with 9.
Fetch the next digit (8) from the dividend, attach it to 9 and continue: 98 / 31

On to step 3:
31 can be fit into 98 3 times, resulting in a remainder of 5.
Write down 3 as next digit of the result. 
Result so far: 13.0
Subtract 93 from 98 to get 5.
Include the next digit (2) from the dividend after 5, then repeat: 52 / 31

On to step 4:
The number 31 fits into 52 1 times, leaving a remainder of 21.
Record the quotient 1 as the next digit in the result. 
Result so far: 131.0
Subtracting 31 from 52 leaves us with 21.
Take the next digit (0) from the dividend and append it to 21, then repeat: 210 / 31

Advancing to step 5:
210 divided by 31 is 6 with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 1316.0
If we subtract 186 from 210, we get 24.
Include the next digit (2) from the dividend after 24, then repeat: 242 / 31

On to step 6:
31 can be fit into 242 7 times, resulting in a remainder of 25.
Use 7 as the next digit of our solution. 
Result so far: 13167.0
If we take 217 away from 242, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 7:
The number 31 fits into 250 8 times, leaving a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 13167.8
Subtracting 248 from 250 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 8:
The number 31 fits into 20 0 times, leaving a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 13167.8
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 9:
31 can be fit into 200 6 times, resulting in a remainder of 14.
Write down 6 as next digit of the result. 
Result so far: 13167.806
Subtracting 186 from 200 leaves us 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.

Moving on to step 10:
When dividing 140 by 31, we get 4 with a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 13167.8064
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.

On to step 11:
31 can be fit into 160 5 times, resulting in a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 13167.80645
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.

On to step 12:
The number 31 fits into 50 1 times, leaving a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 13167.806451
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 13:
If we divide 190 by 31, we get 6 and a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 13167.8064516
The remainder is 4 after subtracting 186 from 190.
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 14:
If we divide 40 by 31, we get 1 and a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 13167.80645161
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.

The final result is 13167.80645161 with a remainder of 9e-09.