400886 ÷ 31 
The aim is to understand the frequency of 31 in 400886.

On to step 1:
The number 31 fits into 4 0 times, leaving a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 31

Going ahead 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
If we take 31 away from 40, we end up with 9.
Include the next digit (0) from the dividend after 9, then repeat: 90 / 31

Step 3:
The number 31 fits into 90 2 times, leaving a remainder of 28.
The next digit of our result is 2. 
Result so far: 12.0
Subtract 62 from 90 to get 28.
Take the next digit (8) from the dividend and append it to 28, then repeat: 288 / 31

Going ahead to step 4:
If we divide 288 by 31, we get 9 and a remainder of 9.
The next digit of our result is 9. 
Result so far: 129.0
The remainder is 9 after subtracting 279 from 288.
Take the next digit (8) from the dividend and append it to 9, then repeat: 98 / 31

Let's proceed to step 5:
98 divided by 31 is 3 with a remainder of 5.
Use 3 as the next digit of our solution. 
Result so far: 1293.0
Subtracting 93 from 98 leaves us with 5.
Fetch the next digit (6) from the dividend, attach it to 5 and continue: 56 / 31

Step 6:
56 divided by 31 is 1 with a remainder of 25.
Put 1 as the next digit of the answer. 
Result so far: 12931.0
Subtracting 31 from 56 leaves us 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.

Going ahead to step 7:
31 can be fit into 250 8 times, resulting in a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 12931.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.

On to step 8:
If we divide 20 by 31, we get 0 and a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 12931.8
If we take 0 away from 20, we end up 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.

Advancing to step 9:
If we divide 200 by 31, we get 6 and a remainder of 14.
Put 6 as the next digit of the answer. 
Result so far: 12931.806
If we subtract 186 from 200, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 10:
The number 31 fits into 140 4 times, leaving a remainder of 16.
Put 4 as the next digit of the answer. 
Result so far: 12931.8064
If we take 124 away from 140, we end up 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.

Advancing to step 11:
If we divide 160 by 31, we get 5 and a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 12931.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.

Let's proceed to step 12:
If we divide 50 by 31, we get 1 and a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 12931.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.

Going ahead to step 13:
31 goes into 190 6 times with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 12931.8064516
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.

Moving on to step 14:
31 can be fit into 40 1 times, resulting in a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 12931.80645161
If we subtract 31 from 40, we 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.

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