99745 divided by 31 
The aim is to understand the frequency of 31 in 99745.

Moving on to step 1:
9 divided by 31 is 0 with a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Grab the next digit (9) from the dividend, add it to 9, then carry on: 99 / 31

Step 2:
When dividing 99 by 31, we get 3 with a remainder of 6.
Use 3 as the next digit of our solution. 
Result so far: 3.0
If we take 93 away from 99, we end up with 6.
Bring next digit (7) of the dividend behind the 6 and repeat the process: 67 / 31

Going ahead to step 3:
31 goes into 67 2 times with a remainder of 5.
Write down 2 as next digit of the result. 
Result so far: 32.0
Deduct 62 from 67 and we're left with 5.
Include the next digit (4) from the dividend after 5, then repeat: 54 / 31

Advancing to step 4:
54 divided by 31 is 1 with a remainder of 23.
The number 1 becomes the next digit in our result. 
Result so far: 321.0
The remainder is 23 after subtracting 31 from 54.
Take the next digit (5) from the dividend and append it to 23, then repeat: 235 / 31

Moving on to step 5:
235 divided by 31 is 7 with a remainder of 18.
Use 7 as the next digit of our solution. 
Result so far: 3217.0
The remainder is 18 after subtracting 217 from 235.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Going ahead to step 6:
180 divided by 31 is 5 with a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 3217.5
Subtracting 155 from 180 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 goes into 250 8 times with a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 3217.58
Deduct 248 from 250 and we're left 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.

Step 8:
The number 31 fits into 20 0 times, leaving a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 3217.58
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 9:
If we divide 200 by 31, we get 6 and a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 3217.5806
Subtract 186 from 200 to 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.

Going ahead to step 10:
31 can be fit into 140 4 times, resulting in a remainder of 16.
Put 4 as the next digit of the answer. 
Result so far: 3217.58064
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.
Record the quotient 5 as the next digit in the result. 
Result so far: 3217.580645
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.

Going ahead to step 12:
50 divided by 31 is 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 3217.5806451
Deduct 31 from 50 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Advancing to step 13:
31 can be fit into 190 6 times, resulting in a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 3217.58064516
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.

The final outcome is 3217.58064516, with a leftover of 4e-09.