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

Step 1:
5 divided by 31 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Bring next digit (9) of the dividend behind the 5 and repeat the process: 59 / 31

Advancing to step 2:
59 divided by 31 is 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.
Fetch the next digit (3) from the dividend, attach it to 28 and continue: 283 / 31

Let's proceed to step 3:
If we divide 283 by 31, we get 9 and a remainder of 4.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
If we subtract 279 from 283, we get 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 31

Going ahead to step 4:
31 can be fit into 40 1 times, resulting in a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 191.0
Deduct 31 from 40 and we're left with 9.
Fetch the next digit (8) from the dividend, attach it to 9 and continue: 98 / 31

Let's proceed to step 5:
When dividing 98 by 31, we get 3 with a remainder of 5.
The number 3 becomes the next digit in our result. 
Result so far: 1913.0
If we take 93 away from 98, we end up with 5.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 31

Moving on to step 6:
When dividing 59 by 31, we get 1 with a remainder of 28.
Record the quotient 1 as the next digit in the result. 
Result so far: 19131.0
Subtracting 31 from 59 leaves us 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.

Let's proceed to step 7:
31 goes into 280 9 times with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 19131.9
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 8:
If we divide 10 by 31, we get 0 and a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 19131.9
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 9:
The number 31 fits into 100 3 times, leaving a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 19131.903
Subtract 93 from 100 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 10:
When dividing 70 by 31, we get 2 with a remainder of 8.
The next digit of our result is 2. 
Result so far: 19131.9032
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.

Going ahead to step 11:
31 can be fit into 80 2 times, resulting in a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 19131.90322
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 quotient of the division is 19131.90322, and the remainder is 1.8e-05.