598988 divided by 31 
The aim is to understand the frequency of 31 in 598988.

Step 1:
31 can be fit into 5 0 times, resulting in a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Include the next digit (9) from the dividend after 5, then repeat: 59 / 31

Advancing to step 2:
When dividing 59 by 31, we get 1 with a remainder of 28.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 31 from 59 and we're left with 28.
Append the next digit (8) from the dividend to 28 and continue with: 288 / 31

Going ahead to step 3:
The number 31 fits into 288 9 times, leaving a remainder of 9.
The next digit of our result is 9. 
Result so far: 19.0
If we subtract 279 from 288, we get 9.
Fetch the next digit (9) from the dividend, attach it to 9 and continue: 99 / 31

Moving on to step 4:
The number 31 fits into 99 3 times, leaving a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 193.0
If we subtract 93 from 99, we get 6.
Bring next digit (8) of the dividend behind the 6 and repeat the process: 68 / 31

On to step 5:
31 goes into 68 2 times with a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 1932.0
If we take 62 away from 68, we end up with 6.
Include the next digit (8) from the dividend after 6, then repeat: 68 / 31

Step 6:
When dividing 68 by 31, we get 2 with a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 19322.0
Subtract 62 from 68 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 7:
60 divided by 31 is 1 with a remainder of 29.
Put 1 as the next digit of the answer. 
Result so far: 19322.1
Deduct 31 from 60 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Advancing to step 8:
If we divide 290 by 31, we get 9 and a remainder of 11.
The next digit of our result is 9. 
Result so far: 19322.19
If we subtract 279 from 290, 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.

Step 9:
31 can be fit into 110 3 times, resulting in a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 19322.193
Subtract 93 from 110 to 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.

Moving on to step 10:
If we divide 170 by 31, we get 5 and a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 19322.1935
If we take 155 away from 170, we end up 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.

Let's proceed to step 11:
31 goes into 150 4 times with a remainder of 26.
Use 4 as the next digit of our solution. 
Result so far: 19322.19354
Subtracting 124 from 150 leaves us 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 12:
If we divide 260 by 31, we get 8 and a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 19322.193548
If we subtract 248 from 260, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 13:
If we divide 120 by 31, we get 3 and a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 19322.1935483
If we take 93 away from 120, we end up with 27.
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 14:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 19322.19354838
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.

Our division results in 19322.19354838 with a remaining 2.2e-08.