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

Going ahead to step 1:
The number 31 fits into 3 0 times, leaving a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Take the next digit (7) from the dividend and append it to 3, then repeat: 37 / 31

Step 2:
The number 31 fits into 37 1 times, leaving a remainder of 6.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 31 from 37 leaves us with 6.
Take the next digit (0) from the dividend and append it to 6, then repeat: 60 / 31

Moving on to step 3:
The number 31 fits into 60 1 times, leaving a remainder of 29.
Put 1 as the next digit of the answer. 
Result so far: 11.0
Subtract 31 from 60 to get 29.
Include the next digit (0) from the dividend after 29, then repeat: 290 / 31

On to step 4:
When dividing 290 by 31, we get 9 with a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 119.0
The remainder is 11 after subtracting 279 from 290.
Bring next digit (3) of the dividend behind the 11 and repeat the process: 113 / 31

Step 5:
When dividing 113 by 31, we get 3 with a remainder of 20.
Record the quotient 3 as the next digit in the result. 
Result so far: 1193.0
If we take 93 away from 113, we end up with 20.
Include the next digit (2) from the dividend after 20, then repeat: 202 / 31

On to step 6:
31 can be fit into 202 6 times, resulting in a remainder of 16.
Write down 6 as next digit of the result. 
Result so far: 11936.0
If we subtract 186 from 202, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 7:
160 divided by 31 is 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 11936.5
If we take 155 away from 160, we end up 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.

Going ahead to step 8:
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: 11936.51
If we subtract 31 from 50, we 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 9:
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: 11936.516
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.

Step 10:
31 can be fit into 40 1 times, resulting in a remainder of 9.
The next digit of our result is 1. 
Result so far: 11936.5161
Deduct 31 from 40 and we're left 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.

On to step 11:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 11936.51612
If we subtract 62 from 90, we 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.

Going ahead to step 12:
The number 31 fits into 280 9 times, leaving a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 11936.516129
If we take 279 away from 280, we end up 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 13:
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: 11936.516129
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.

Going ahead to step 14:
31 goes into 100 3 times with a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 11936.51612903
If we subtract 93 from 100, we 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.

The final outcome is 11936.51612903, with a leftover of 7e-09.