We're dividing 153221 by 31 
The aim is to understand the frequency of 31 in 153221.

Advancing to step 1:
If we divide 1 by 31, we get 0 and a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 31

Step 2:
If we divide 15 by 31, we get 0 and a remainder of 15.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 15 leaves us with 15.
Bring next digit (3) of the dividend behind the 15 and repeat the process: 153 / 31

Going ahead to step 3:
31 goes into 153 4 times with a remainder of 29.
Use 4 as the next digit of our solution. 
Result so far: 4.0
If we subtract 124 from 153, we get 29.
Fetch the next digit (2) from the dividend, attach it to 29 and continue: 292 / 31

Step 4:
31 can be fit into 292 9 times, resulting in a remainder of 13.
Use 9 as the next digit of our solution. 
Result so far: 49.0
The remainder is 13 after subtracting 279 from 292.
Bring next digit (2) of the dividend behind the 13 and repeat the process: 132 / 31

Let's proceed to step 5:
132 divided by 31 is 4 with a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 494.0
Subtract 124 from 132 to get 8.
Bring next digit (1) of the dividend behind the 8 and repeat the process: 81 / 31

Going ahead to step 6:
The number 31 fits into 81 2 times, leaving a remainder of 19.
The number 2 becomes the next digit in our result. 
Result so far: 4942.0
Deduct 62 from 81 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 7:
190 divided by 31 is 6 with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 4942.6
If we take 186 away from 190, we end up 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 8:
31 goes into 40 1 times with a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 4942.61
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 9:
When dividing 90 by 31, we get 2 with a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 4942.612
Deduct 62 from 90 and we're left 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.

On to step 10:
31 goes into 280 9 times with a remainder of 1.
The next digit of our result is 9. 
Result so far: 4942.6129
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.

Let's proceed to step 11:
31 goes into 10 0 times with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 4942.6129
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.

Advancing to step 12:
The number 31 fits into 100 3 times, leaving a remainder of 7.
The next digit of our result is 3. 
Result so far: 4942.612903
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.

Step 13:
The number 31 fits into 70 2 times, leaving a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 4942.6129032
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.

On to step 14:
When dividing 80 by 31, we get 2 with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 4942.61290322
If we take 62 away from 80, we end up 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 4942.61290322 with a remaining 1.8e-08.