We look at the division of 575395 by 31 
The aim is to understand the frequency of 31 in 575395.

Going ahead to step 1:
The number 31 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Take the next digit (7) from the dividend and append it to 5, then repeat: 57 / 31

On to step 2:
31 goes into 57 1 times with a remainder of 26.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 31 from 57 to get 26.
Fetch the next digit (5) from the dividend, attach it to 26 and continue: 265 / 31

Going ahead to step 3:
31 goes into 265 8 times with a remainder of 17.
Put 8 as the next digit of the answer. 
Result so far: 18.0
The remainder is 17 after subtracting 248 from 265.
Append the next digit (3) from the dividend to 17 and continue with: 173 / 31

Going ahead to step 4:
173 divided by 31 is 5 with a remainder of 18.
Write down 5 as next digit of the result. 
Result so far: 185.0
Subtracting 155 from 173 leaves us with 18.
Append the next digit (9) from the dividend to 18 and continue with: 189 / 31

Step 5:
31 can be fit into 189 6 times, resulting in a remainder of 3.
The number 6 becomes the next digit in our result. 
Result so far: 1856.0
If we take 186 away from 189, we end up with 3.
Bring next digit (5) of the dividend behind the 3 and repeat the process: 35 / 31

Advancing to step 6:
The number 31 fits into 35 1 times, leaving a remainder of 4.
Write down 1 as next digit of the result. 
Result so far: 18561.0
The remainder is 4 after subtracting 31 from 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 7:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 18561.1
Subtract 31 from 40 to get 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 8:
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: 18561.12
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 9:
The number 31 fits into 280 9 times, leaving a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 18561.129
Subtracting 279 from 280 leaves us 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.

Let's proceed to step 10:
When dividing 10 by 31, we get 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 18561.129
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 11:
31 goes into 100 3 times with a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 18561.12903
Subtracting 93 from 100 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 12:
31 goes into 70 2 times with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 18561.129032
The remainder is 8 after subtracting 62 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 13:
When dividing 80 by 31, we get 2 with a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 18561.1290322
The remainder is 18 after subtracting 62 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The final outcome is 18561.1290322, with a leftover of 1.8e-07.