We look at the division of 370266 by 31 
The aim is to understand the frequency of 31 in 370266.

Advancing to step 1:
31 can be fit into 3 0 times, resulting in a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Bring next digit (7) of the dividend behind the 3 and repeat the process: 37 / 31

Step 2:
If we divide 37 by 31, we get 1 and a remainder of 6.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 31 from 37, we get 6.
Bring next digit (0) of the dividend behind the 6 and repeat the process: 60 / 31

Moving on to step 3:
31 goes into 60 1 times with a remainder of 29.
The next digit of our result is 1. 
Result so far: 11.0
Deduct 31 from 60 and we're left with 29.
Include the next digit (2) from the dividend after 29, then repeat: 292 / 31

On to step 4:
31 can be fit into 292 9 times, resulting in a remainder of 13.
Write down 9 as next digit of the result. 
Result so far: 119.0
If we subtract 279 from 292, we get 13.
Take the next digit (6) from the dividend and append it to 13, then repeat: 136 / 31

On to step 5:
31 goes into 136 4 times with a remainder of 12.
Write down 4 as next digit of the result. 
Result so far: 1194.0
The remainder is 12 after subtracting 124 from 136.
Take the next digit (6) from the dividend and append it to 12, then repeat: 126 / 31

Let's proceed to step 6:
When dividing 126 by 31, we get 4 with a remainder of 2.
The next digit of our result is 4. 
Result so far: 11944.0
The remainder is 2 after subtracting 124 from 126.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

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

Step 8:
200 divided by 31 is 6 with a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 11944.06
The remainder is 14 after subtracting 186 from 200.
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 9:
If we divide 140 by 31, we get 4 and a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 11944.064
Subtract 124 from 140 to 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.

Let's proceed to step 10:
31 goes into 160 5 times with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 11944.0645
Subtracting 155 from 160 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.

Let's proceed to step 11:
50 divided by 31 is 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 11944.06451
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.

Moving on to step 12:
31 goes into 190 6 times with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 11944.064516
Subtracting 186 from 190 leaves us 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.

On to step 13:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 11944.0645161
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.

On to step 14:
If we divide 90 by 31, we get 2 and a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 11944.06451612
Deduct 62 from 90 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

The quotient of the division is 11944.06451612, and the remainder is 2.8e-08.