We look at the division of 519730 by 31 
The aim is to understand the frequency of 31 in 519730.

Step 1:
31 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 31

Moving on to step 2:
When dividing 51 by 31, we get 1 with a remainder of 20.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 31 from 51 and we're left with 20.
Include the next digit (9) from the dividend after 20, then repeat: 209 / 31

Step 3:
209 divided by 31 is 6 with a remainder of 23.
Put 6 as the next digit of the answer. 
Result so far: 16.0
Subtract 186 from 209 to get 23.
Append the next digit (7) from the dividend to 23 and continue with: 237 / 31

Let's proceed to step 4:
The number 31 fits into 237 7 times, leaving a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 167.0
The remainder is 20 after subtracting 217 from 237.
Fetch the next digit (3) from the dividend, attach it to 20 and continue: 203 / 31

Step 5:
When dividing 203 by 31, we get 6 with a remainder of 17.
Record the quotient 6 as the next digit in the result. 
Result so far: 1676.0
Subtracting 186 from 203 leaves us with 17.
Take the next digit (0) from the dividend and append it to 17, then repeat: 170 / 31

Moving on to step 6:
170 divided by 31 is 5 with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 16765.0
Deduct 155 from 170 and we're left with 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 7:
If we divide 150 by 31, we get 4 and a remainder of 26.
Use 4 as the next digit of our solution. 
Result so far: 16765.4
Subtract 124 from 150 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 8:
The number 31 fits into 260 8 times, leaving a remainder of 12.
The next digit of our result is 8. 
Result so far: 16765.48
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.

Advancing to step 9:
31 goes into 120 3 times with a remainder of 27.
Write down 3 as next digit of the result. 
Result so far: 16765.483
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.

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

Going ahead to step 11:
When dividing 220 by 31, we get 7 with a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 16765.48387
Subtract 217 from 220 to 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.

Going ahead to step 12:
When dividing 30 by 31, we get 0 with a remainder of 30.
The next digit of our result is 0. 
Result so far: 16765.48387
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 13:
The number 31 fits into 300 9 times, leaving a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 16765.4838709
Subtract 279 from 300 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Let's proceed to step 14:
210 divided by 31 is 6 with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 16765.48387096
If we take 186 away from 210, we end up with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

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