We divide 12370714 by 31
The aim is to understand the frequency of 31 in 12370714.

Going ahead to step 1:
If we divide 1 by 31, we get 0 and a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Take the next digit (2) from the dividend and append it to 1, then repeat: 12 / 31

Step 2:
12 divided by 31 is 0 with a remainder of 12.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 12 after subtracting 0 from 12.
Take the next digit (3) from the dividend and append it to 12, then repeat: 123 / 31

On to step 3:
31 goes into 123 3 times with a remainder of 30.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we subtract 93 from 123, we get 30.
Fetch the next digit (7) from the dividend, attach it to 30 and continue: 307 / 31

Going ahead to step 4:
307 divided by 31 is 9 with a remainder of 28.
The number 9 becomes the next digit in our result. 
Result so far: 39.0
Subtract 279 from 307 to get 28.
Bring next digit (0) of the dividend behind the 28 and repeat the process: 280 / 31

Going ahead to step 5:
The number 31 fits into 280 9 times, leaving a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 399.0
Deduct 279 from 280 and we're left with 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 31

On to step 6:
17 divided by 31 is 0 with a remainder of 17.
Use 0 as the next digit of our solution. 
Result so far: 3990.0
Subtract 0 from 17 to get 17.
Append the next digit (1) from the dividend to 17 and continue with: 171 / 31

On to step 7:
31 goes into 171 5 times with a remainder of 16.
Put 5 as the next digit of the answer. 
Result so far: 39905.0
The remainder is 16 after subtracting 155 from 171.
Bring next digit (4) of the dividend behind the 16 and repeat the process: 164 / 31

On to step 8:
If we divide 164 by 31, we get 5 and a remainder of 9.
Record the quotient 5 as the next digit in the result. 
Result so far: 399055.0
Subtract 155 from 164 to 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.

Advancing to step 9:
When dividing 90 by 31, we get 2 with a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 399055.2
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 10:
31 goes into 280 9 times with a remainder of 1.
The next digit of our result is 9. 
Result so far: 399055.29
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 11:
When dividing 10 by 31, we get 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 399055.29
If we take 0 away from 10, we end up with 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 12:
When dividing 100 by 31, we get 3 with a remainder of 7.
The next digit of our result is 3. 
Result so far: 399055.2903
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 13:
When dividing 70 by 31, we get 2 with a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 399055.29032
Deduct 62 from 70 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 14:
31 can be fit into 80 2 times, resulting in a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 399055.290322
If we subtract 62 from 80, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The quotient of the division is 399055.290322, and the remainder is 1.8e-06.