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

Step 1:
31 can be fit into 1 0 times, resulting in a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Bring next digit (5) of the dividend behind the 1 and repeat the process: 15 / 31

Going ahead to step 2:
When dividing 15 by 31, we get 0 with a remainder of 15.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 15, we end up with 15.
Fetch the next digit (9) from the dividend, attach it to 15 and continue: 159 / 31

On to step 3:
If we divide 159 by 31, we get 5 and a remainder of 4.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Subtract 155 from 159 to get 4.
Include the next digit (1) from the dividend after 4, then repeat: 41 / 31

Advancing to step 4:
31 can be fit into 41 1 times, resulting in a remainder of 10.
The number 1 becomes the next digit in our result. 
Result so far: 51.0
Subtract 31 from 41 to get 10.
Grab the next digit (3) from the dividend, add it to 10, then carry on: 103 / 31

On to step 5:
31 goes into 103 3 times with a remainder of 10.
The next digit of our result is 3. 
Result so far: 513.0
If we subtract 93 from 103, we get 10.
Take the next digit (2) from the dividend and append it to 10, then repeat: 102 / 31

Advancing to step 6:
102 divided by 31 is 3 with a remainder of 9.
Put 3 as the next digit of the answer. 
Result so far: 5133.0
Subtracting 93 from 102 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.

Let's proceed to step 7:
31 goes into 90 2 times with a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 5133.2
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.

On to step 8:
31 goes into 280 9 times with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 5133.29
Subtract 279 from 280 to 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.

On to step 9:
31 can be fit into 10 0 times, resulting in a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 5133.29
Deduct 0 from 10 and we're left 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.

Going ahead to step 10:
31 goes into 100 3 times with a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 5133.2903
If we take 93 away from 100, we end up 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.

Advancing to step 11:
The number 31 fits into 70 2 times, leaving a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 5133.29032
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 12:
80 divided by 31 is 2 with a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 5133.290322
Deduct 62 from 80 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Our division results in 5133.290322 with a remaining 1.8e-06.