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

On to step 1:
The number 31 fits into 7 0 times, leaving a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Append the next digit (9) from the dividend to 7 and continue with: 79 / 31

Going ahead to step 2:
If we divide 79 by 31, we get 2 and a remainder of 17.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we subtract 62 from 79, we get 17.
Fetch the next digit (1) from the dividend, attach it to 17 and continue: 171 / 31

Going ahead to step 3:
The number 31 fits into 171 5 times, leaving a remainder of 16.
Put 5 as the next digit of the answer. 
Result so far: 25.0
Deduct 155 from 171 and we're left with 16.
Append the next digit (8) from the dividend to 16 and continue with: 168 / 31

On to step 4:
168 divided by 31 is 5 with a remainder of 13.
Put 5 as the next digit of the answer. 
Result so far: 255.0
If we take 155 away from 168, we end up with 13.
Fetch the next digit (5) from the dividend, attach it to 13 and continue: 135 / 31

Moving on to step 5:
The number 31 fits into 135 4 times, leaving a remainder of 11.
Record the quotient 4 as the next digit in the result. 
Result so far: 2554.0
If we subtract 124 from 135, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 6:
110 divided by 31 is 3 with a remainder of 17.
The next digit of our result is 3. 
Result so far: 2554.3
If we subtract 93 from 110, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 7:
If we divide 170 by 31, we get 5 and a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 2554.35
The remainder is 15 after subtracting 155 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Advancing to step 8:
When dividing 150 by 31, we get 4 with a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 2554.354
Deduct 124 from 150 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 9:
31 can be fit into 260 8 times, resulting in a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 2554.3548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 10:
The number 31 fits into 120 3 times, leaving a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 2554.35483
The remainder is 27 after subtracting 93 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 11:
31 goes into 270 8 times with a remainder of 22.
The next digit of our result is 8. 
Result so far: 2554.354838
Subtracting 248 from 270 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 12:
When dividing 220 by 31, we get 7 with a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 2554.3548387
If we take 217 away from 220, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 13:
If we divide 30 by 31, we get 0 and a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 2554.3548387
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

The final result is 2554.3548387 with a remainder of 3e-08.