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

Advancing to step 1:
The number 31 fits into 5 0 times, leaving a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 31

Step 2:
The number 31 fits into 58 1 times, leaving a remainder of 27.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 31 from 58 and we're left with 27.
Fetch the next digit (5) from the dividend, attach it to 27 and continue: 275 / 31

Going ahead to step 3:
When dividing 275 by 31, we get 8 with a remainder of 27.
Write down 8 as next digit of the result. 
Result so far: 18.0
If we take 248 away from 275, we end up with 27.
Include the next digit (5) from the dividend after 27, then repeat: 275 / 31

Moving on to step 4:
When dividing 275 by 31, we get 8 with a remainder of 27.
Write down 8 as next digit of the result. 
Result so far: 188.0
Deduct 248 from 275 and we're left with 27.
Fetch the next digit (7) from the dividend, attach it to 27 and continue: 277 / 31

Going ahead to step 5:
If we divide 277 by 31, we get 8 and a remainder of 29.
Put 8 as the next digit of the answer. 
Result so far: 1888.0
Deduct 248 from 277 and we're left with 29.
Bring next digit (9) of the dividend behind the 29 and repeat the process: 299 / 31

On to step 6:
31 goes into 299 9 times with a remainder of 20.
Record the quotient 9 as the next digit in the result. 
Result so far: 18889.0
Deduct 279 from 299 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 7:
If we divide 200 by 31, we get 6 and a remainder of 14.
The next digit of our result is 6. 
Result so far: 18889.6
Deduct 186 from 200 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 8:
31 goes into 140 4 times with a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 18889.64
Subtract 124 from 140 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 9:
When dividing 160 by 31, we get 5 with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 18889.645
Deduct 155 from 160 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 10:
If we divide 50 by 31, we get 1 and a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 18889.6451
Subtract 31 from 50 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 11:
The number 31 fits into 190 6 times, leaving a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 18889.64516
The remainder is 4 after subtracting 186 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 12:
31 goes into 40 1 times with a remainder of 9.
The next digit of our result is 1. 
Result so far: 18889.645161
Subtracting 31 from 40 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 13:
The number 31 fits into 90 2 times, leaving a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 18889.6451612
If we take 62 away from 90, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 14:
If we divide 280 by 31, we get 9 and a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 18889.64516129
Deduct 279 from 280 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

In conclusion, the division gives 18889.64516129 with a balance of 1e-09.