We're dividing 198780 by 31 
The aim is to understand the frequency of 31 in 198780.

Moving on to step 1:
When dividing 1 by 31, we get 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Fetch the next digit (9) from the dividend, attach it to 1 and continue: 19 / 31

Going ahead to step 2:
19 divided by 31 is 0 with a remainder of 19.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 19 and we're left with 19.
Append the next digit (8) from the dividend to 19 and continue with: 198 / 31

Going ahead to step 3:
31 goes into 198 6 times with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 6.0
If we subtract 186 from 198, we get 12.
Take the next digit (7) from the dividend and append it to 12, then repeat: 127 / 31

Let's proceed to step 4:
31 can be fit into 127 4 times, resulting in a remainder of 3.
Write down 4 as next digit of the result. 
Result so far: 64.0
The remainder is 3 after subtracting 124 from 127.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 31

Let's proceed to step 5:
If we divide 38 by 31, we get 1 and a remainder of 7.
Use 1 as the next digit of our solution. 
Result so far: 641.0
If we subtract 31 from 38, we get 7.
Bring next digit (0) of the dividend behind the 7 and repeat the process: 70 / 31

Let's proceed to step 6:
70 divided by 31 is 2 with a remainder of 8.
The next digit of our result is 2. 
Result so far: 6412.0
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.

Let's proceed to step 7:
If we divide 80 by 31, we get 2 and a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 6412.2
Subtract 62 from 80 to 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.

Let's proceed to step 8:
31 goes into 180 5 times with a remainder of 25.
The next digit of our result is 5. 
Result so far: 6412.25
The remainder is 25 after subtracting 155 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 9:
The number 31 fits into 250 8 times, leaving a remainder of 2.
The next digit of our result is 8. 
Result so far: 6412.258
If we take 248 away from 250, we end up 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.

Going ahead to step 10:
When dividing 20 by 31, we get 0 with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 6412.258
If we subtract 0 from 20, we 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 11:
When dividing 200 by 31, we get 6 with a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 6412.25806
Subtracting 186 from 200 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 12:
The number 31 fits into 140 4 times, leaving a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 6412.258064
Deduct 124 from 140 and we're left 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.

Moving on to step 13:
The number 31 fits into 160 5 times, leaving a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 6412.2580645
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.

Step 14:
When dividing 50 by 31, we get 1 with a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 6412.25806451
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.

After the division, we end up with 6412.25806451 and a remainder of 1.9e-08.