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

On to step 1:
The number 31 fits into 1 0 times, leaving a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 31

Moving on to step 2:
31 can be fit into 10 0 times, resulting in a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 10, we get 10.
Append the next digit (0) from the dividend to 10 and continue with: 100 / 31

Let's proceed to step 3:
If we divide 100 by 31, we get 3 and a remainder of 7.
The next digit of our result is 3. 
Result so far: 3.0
If we take 93 away from 100, we end up with 7.
Bring next digit (4) of the dividend behind the 7 and repeat the process: 74 / 31

Step 4:
The number 31 fits into 74 2 times, leaving a remainder of 12.
The number 2 becomes the next digit in our result. 
Result so far: 32.0
Subtracting 62 from 74 leaves us with 12.
Bring next digit (7) of the dividend behind the 12 and repeat the process: 127 / 31

Moving on to step 5:
31 goes into 127 4 times with a remainder of 3.
Write down 4 as next digit of the result. 
Result so far: 324.0
Deduct 124 from 127 and we're left with 3.
Bring next digit (6) of the dividend behind the 3 and repeat the process: 36 / 31

Step 6:
If we divide 36 by 31, we get 1 and a remainder of 5.
The number 1 becomes the next digit in our result. 
Result so far: 3241.0
Subtracting 31 from 36 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 7:
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: 3241.1
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.

Step 8:
If we divide 190 by 31, we get 6 and a remainder of 4.
The next digit of our result is 6. 
Result so far: 3241.16
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 9:
31 goes into 40 1 times with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 3241.161
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.

Going ahead to step 10:
31 goes into 90 2 times with a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 3241.1612
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.

Moving on to step 11:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 3241.16129
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 12:
The number 31 fits into 10 0 times, leaving a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 3241.16129
Subtract 0 from 10 to 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.

Advancing to step 13:
If we divide 100 by 31, we get 3 and a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 3241.1612903
If we take 93 away from 100, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 14:
The number 31 fits into 70 2 times, leaving a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 3241.16129032
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final outcome is 3241.16129032, with a leftover of 8e-09.