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

Moving on to step 1:
The number 31 fits into 1 0 times, leaving a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Take the next digit (4) from the dividend and append it to 1, then repeat: 14 / 31

Moving on to step 2:
The number 31 fits into 14 0 times, leaving a remainder of 14.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 14, we get 14.
Grab the next digit (9) from the dividend, add it to 14, then carry on: 149 / 31

On to step 3:
31 goes into 149 4 times with a remainder of 25.
Put 4 as the next digit of the answer. 
Result so far: 4.0
If we take 124 away from 149, we end up with 25.
Bring next digit (8) of the dividend behind the 25 and repeat the process: 258 / 31

On to step 4:
31 goes into 258 8 times with a remainder of 10.
Use 8 as the next digit of our solution. 
Result so far: 48.0
Subtracting 248 from 258 leaves us with 10.
Grab the next digit (4) from the dividend, add it to 10, then carry on: 104 / 31

Going ahead to step 5:
If we divide 104 by 31, we get 3 and a remainder of 11.
Write down 3 as next digit of the result. 
Result so far: 483.0
Subtract 93 from 104 to get 11.
Bring next digit (1) of the dividend behind the 11 and repeat the process: 111 / 31

Step 6:
The number 31 fits into 111 3 times, leaving a remainder of 18.
The next digit of our result is 3. 
Result so far: 4833.0
If we take 93 away from 111, 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.

Advancing to step 7:
When dividing 180 by 31, we get 5 with a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 4833.5
The remainder is 25 after subtracting 155 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 8:
The number 31 fits into 250 8 times, leaving a remainder of 2.
The next digit of our result is 8. 
Result so far: 4833.58
Subtracting 248 from 250 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 9:
31 goes into 20 0 times with a remainder of 20.
The next digit of our result is 0. 
Result so far: 4833.58
If we take 0 away from 20, we end up 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.

Advancing to step 10:
If we divide 200 by 31, we get 6 and a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 4833.5806
If we subtract 186 from 200, we 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.

Moving on to step 11:
31 can be fit into 140 4 times, resulting in a remainder of 16.
The next digit of our result is 4. 
Result so far: 4833.58064
Subtracting 124 from 140 leaves us 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.

Advancing to step 12:
If we divide 160 by 31, we get 5 and a remainder of 5.
The next digit of our result is 5. 
Result so far: 4833.580645
If we take 155 away from 160, 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.

Moving on to step 13:
When dividing 50 by 31, we get 1 with a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 4833.5806451
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 14:
If we divide 190 by 31, we get 6 and a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 4833.58064516
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.

Our division results in 4833.58064516 with a remaining 4e-09.