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

On to step 1:
If we divide 4 by 31, we get 0 and a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Include the next digit (7) from the dividend after 4, then repeat: 47 / 31

Step 2:
When dividing 47 by 31, we get 1 with a remainder of 16.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 31 from 47 and we're left with 16.
Fetch the next digit (8) from the dividend, attach it to 16 and continue: 168 / 31

Step 3:
168 divided by 31 is 5 with a remainder of 13.
The number 5 becomes the next digit in our result. 
Result so far: 15.0
Deduct 155 from 168 and we're left with 13.
Take the next digit (0) from the dividend and append it to 13, then repeat: 130 / 31

Let's proceed to step 4:
The number 31 fits into 130 4 times, leaving a remainder of 6.
Record the quotient 4 as the next digit in the result. 
Result so far: 154.0
If we subtract 124 from 130, we get 6.
Bring next digit (0) of the dividend behind the 6 and repeat the process: 60 / 31

Let's proceed to step 5:
If we divide 60 by 31, we get 1 and a remainder of 29.
The next digit of our result is 1. 
Result so far: 1541.0
Subtract 31 from 60 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Moving on to step 6:
The number 31 fits into 290 9 times, leaving a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 1541.9
If we take 279 away from 290, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 7:
The number 31 fits into 110 3 times, leaving a remainder of 17.
Use 3 as the next digit of our solution. 
Result so far: 1541.93
Subtracting 93 from 110 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 8:
The number 31 fits into 170 5 times, leaving a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 1541.935
Subtract 155 from 170 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 9:
If we divide 150 by 31, we get 4 and a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 1541.9354
The remainder is 26 after subtracting 124 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 10:
The number 31 fits into 260 8 times, leaving a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 1541.93548
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 11:
120 divided by 31 is 3 with a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 1541.935483
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 12:
31 can be fit into 270 8 times, resulting in a remainder of 22.
The next digit of our result is 8. 
Result so far: 1541.9354838
If we subtract 248 from 270, we get 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 13:
When dividing 220 by 31, we get 7 with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 1541.93548387
If we subtract 217 from 220, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

After the division, we end up with 1541.93548387 and a remainder of 3e-09.