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

Going ahead to step 1:
31 can be fit into 5 0 times, resulting in a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (9) from the dividend, add it to 5, then carry on: 59 / 31

Let's proceed to step 2:
The number 31 fits into 59 1 times, leaving a remainder of 28.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 28 after subtracting 31 from 59.
Bring next digit (7) of the dividend behind the 28 and repeat the process: 287 / 31

Going ahead to step 3:
31 can be fit into 287 9 times, resulting in a remainder of 8.
The next digit of our result is 9. 
Result so far: 19.0
Subtract 279 from 287 to get 8.
Grab the next digit (9) from the dividend, add it to 8, then carry on: 89 / 31

Going ahead to step 4:
31 can be fit into 89 2 times, resulting in a remainder of 27.
The number 2 becomes the next digit in our result. 
Result so far: 192.0
Deduct 62 from 89 and we're left with 27.
Bring next digit (1) of the dividend behind the 27 and repeat the process: 271 / 31

Let's proceed to step 5:
31 goes into 271 8 times with a remainder of 23.
The next digit of our result is 8. 
Result so far: 1928.0
If we subtract 248 from 271, we get 23.
Fetch the next digit (9) from the dividend, attach it to 23 and continue: 239 / 31

Moving on to step 6:
239 divided by 31 is 7 with a remainder of 22.
Use 7 as the next digit of our solution. 
Result so far: 19287.0
If we take 217 away from 239, we end up 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.

Let's proceed to step 7:
If we divide 220 by 31, we get 7 and a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 19287.7
The remainder is 3 after subtracting 217 from 220.
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 8:
31 goes into 30 0 times with a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 19287.7
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.

On to step 9:
300 divided by 31 is 9 with a remainder of 21.
The next digit of our result is 9. 
Result so far: 19287.709
Subtracting 279 from 300 leaves us with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 10:
31 goes into 210 6 times with a remainder of 24.
The number 6 becomes the next digit in our result. 
Result so far: 19287.7096
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.

On to step 11:
If we divide 240 by 31, we get 7 and a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 19287.70967
Subtract 217 from 240 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 12:
31 can be fit into 230 7 times, resulting in a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 19287.709677
If we subtract 217 from 230, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final outcome is 19287.709677, with a leftover of 1.3e-06.