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

Moving on to step 1:
1 divided by 31 is 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 31

Advancing to step 2:
If we divide 15 by 31, we get 0 and a remainder of 15.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 15 and we're left with 15.
Fetch the next digit (3) from the dividend, attach it to 15 and continue: 153 / 31

Moving on to step 3:
When dividing 153 by 31, we get 4 with a remainder of 29.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Deduct 124 from 153 and we're left with 29.
Fetch the next digit (1) from the dividend, attach it to 29 and continue: 291 / 31

Let's proceed to step 4:
291 divided by 31 is 9 with a remainder of 12.
The next digit of our result is 9. 
Result so far: 49.0
The remainder is 12 after subtracting 279 from 291.
Grab the next digit (4) from the dividend, add it to 12, then carry on: 124 / 31

On to step 5:
124 divided by 31 is 4 with a remainder of 0.
Use 4 as the next digit of our solution. 
Result so far: 494.0
Subtract 124 from 124 to get 0.
Include the next digit (2) from the dividend after 0, then repeat: 2 / 31

Moving on to step 6:
2 divided by 31 is 0 with a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 4940.0
The remainder is 2 after subtracting 0 from 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
The number 31 fits into 20 0 times, leaving a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 4940.0
Subtracting 0 from 20 leaves us 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.

On to step 8:
If we divide 200 by 31, we get 6 and a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 4940.06
Subtract 186 from 200 to get 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 9:
The number 31 fits into 140 4 times, leaving a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 4940.064
If we take 124 away from 140, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 10:
160 divided by 31 is 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 4940.0645
Subtract 155 from 160 to get 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 11:
31 can be fit into 50 1 times, resulting in a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 4940.06451
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 12:
31 can be fit into 190 6 times, resulting in a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 4940.064516
Deduct 186 from 190 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 13:
31 goes into 40 1 times with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 4940.0645161
If we subtract 31 from 40, we 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.

On to step 14:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 4940.06451612
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.

The final outcome is 4940.06451612, with a leftover of 2.8e-08.