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

Moving on to step 1:
31 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (7) from the dividend and append it to 5, then repeat: 57 / 31

Going ahead to step 2:
57 divided by 31 is 1 with a remainder of 26.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 31 away from 57, we end up with 26.
Bring next digit (9) of the dividend behind the 26 and repeat the process: 269 / 31

Advancing to step 3:
31 goes into 269 8 times with a remainder of 21.
Put 8 as the next digit of the answer. 
Result so far: 18.0
Subtract 248 from 269 to get 21.
Grab the next digit (8) from the dividend, add it to 21, then carry on: 218 / 31

Advancing to step 4:
When dividing 218 by 31, we get 7 with a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 187.0
The remainder is 1 after subtracting 217 from 218.
Grab the next digit (3) from the dividend, add it to 1, then carry on: 13 / 31

On to step 5:
31 can be fit into 13 0 times, resulting in a remainder of 13.
Put 0 as the next digit of the answer. 
Result so far: 1870.0
Deduct 0 from 13 and we're left with 13.
Fetch the next digit (7) from the dividend, attach it to 13 and continue: 137 / 31

Moving on to step 6:
The number 31 fits into 137 4 times, leaving a remainder of 13.
Write down 4 as next digit of the result. 
Result so far: 18704.0
Subtract 124 from 137 to 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.

Going ahead to step 7:
31 goes into 130 4 times with a remainder of 6.
The next digit of our result is 4. 
Result so far: 18704.4
Subtract 124 from 130 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.

Advancing to step 8:
When dividing 60 by 31, we get 1 with a remainder of 29.
The number 1 becomes the next digit in our result. 
Result so far: 18704.41
If we subtract 31 from 60, we 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.

Advancing to step 9:
If we divide 290 by 31, we get 9 and a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 18704.419
Subtract 279 from 290 to 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.

Advancing to step 10:
If we divide 110 by 31, we get 3 and a remainder of 17.
The next digit of our result is 3. 
Result so far: 18704.4193
Deduct 93 from 110 and we're left 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.

Moving on to step 11:
If we divide 170 by 31, we get 5 and a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 18704.41935
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.

Going ahead to step 12:
150 divided by 31 is 4 with a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 18704.419354
If we take 124 away from 150, we end up 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.

Step 13:
31 goes into 260 8 times with a remainder of 12.
The next digit of our result is 8. 
Result so far: 18704.4193548
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.

Moving on to step 14:
31 goes into 120 3 times with a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 18704.41935483
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.

Our division results in 18704.41935483 with a remaining 2.7e-08.