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

Advancing to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (9) from the dividend and append it to 5, then repeat: 59 / 31

Step 2:
59 divided by 31 is 1 with a remainder of 28.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 31 from 59 to get 28.
Include the next digit (5) from the dividend after 28, then repeat: 285 / 31

On to step 3:
When dividing 285 by 31, we get 9 with a remainder of 6.
Use 9 as the next digit of our solution. 
Result so far: 19.0
If we subtract 279 from 285, we get 6.
Include the next digit (7) from the dividend after 6, then repeat: 67 / 31

Let's proceed to step 4:
67 divided by 31 is 2 with a remainder of 5.
Put 2 as the next digit of the answer. 
Result so far: 192.0
If we subtract 62 from 67, we get 5.
Include the next digit (2) from the dividend after 5, then repeat: 52 / 31

Step 5:
The number 31 fits into 52 1 times, leaving a remainder of 21.
The next digit of our result is 1. 
Result so far: 1921.0
Subtract 31 from 52 to get 21.
Fetch the next digit (3) from the dividend, attach it to 21 and continue: 213 / 31

Advancing to step 6:
31 goes into 213 6 times with a remainder of 27.
Record the quotient 6 as the next digit in the result. 
Result so far: 19216.0
If we subtract 186 from 213, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Advancing to step 7:
If we divide 270 by 31, we get 8 and a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 19216.8
If we take 248 away from 270, 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.

Step 8:
220 divided by 31 is 7 with a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 19216.87
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.

Let's proceed to step 9:
31 can be fit into 30 0 times, resulting in a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 19216.87
Subtract 0 from 30 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 10:
31 can be fit into 300 9 times, resulting in a remainder of 21.
Put 9 as the next digit of the answer. 
Result so far: 19216.8709
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.

On to step 11:
31 goes into 210 6 times with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 19216.87096
Subtract 186 from 210 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 12:
31 goes into 240 7 times with a remainder of 23.
The next digit of our result is 7. 
Result so far: 19216.870967
If we take 217 away from 240, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 13:
230 divided by 31 is 7 with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 19216.8709677
If we take 217 away from 230, we end up with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Our division results in 19216.8709677 with a remaining 1.3e-07.