Let's divide 159593 by 31
The aim is to understand the frequency of 31 in 159593.

Advancing to step 1:
If we divide 1 by 31, we get 0 and a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Grab the next digit (5) from the dividend, add it to 1, then carry on: 15 / 31

Going ahead to step 2:
15 divided by 31 is 0 with a remainder of 15.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 15, we get 15.
Fetch the next digit (9) from the dividend, attach it to 15 and continue: 159 / 31

Let's proceed to step 3:
31 can be fit into 159 5 times, resulting in a remainder of 4.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we take 155 away from 159, we end up with 4.
Grab the next digit (5) from the dividend, add it to 4, then carry on: 45 / 31

Going ahead to step 4:
When dividing 45 by 31, we get 1 with a remainder of 14.
Record the quotient 1 as the next digit in the result. 
Result so far: 51.0
The remainder is 14 after subtracting 31 from 45.
Take the next digit (9) from the dividend and append it to 14, then repeat: 149 / 31

Step 5:
31 can be fit into 149 4 times, resulting in a remainder of 25.
Put 4 as the next digit of the answer. 
Result so far: 514.0
Subtract 124 from 149 to get 25.
Take the next digit (3) from the dividend and append it to 25, then repeat: 253 / 31

Going ahead to step 6:
31 goes into 253 8 times with a remainder of 5.
Put 8 as the next digit of the answer. 
Result so far: 5148.0
If we take 248 away from 253, we end up 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.

Advancing to step 7:
31 goes into 50 1 times with a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 5148.1
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.

On to step 8:
31 can be fit into 190 6 times, resulting in a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 5148.16
If we subtract 186 from 190, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 9:
40 divided by 31 is 1 with a remainder of 9.
The next digit of our result is 1. 
Result so far: 5148.161
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 10:
31 can be fit into 90 2 times, resulting in a remainder of 28.
The next digit of our result is 2. 
Result so far: 5148.1612
Subtract 62 from 90 to get 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 11:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 5148.16129
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.

Moving on to step 12:
31 can be fit into 10 0 times, resulting in a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 5148.16129
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 13:
The number 31 fits into 100 3 times, leaving a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 5148.1612903
The remainder is 7 after subtracting 93 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 14:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 5148.16129032
If we take 62 away from 70, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Our division results in 5148.16129032 with a remaining 8e-09.