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

Going ahead to step 1:
31 can be fit into 1 0 times, resulting in a remainder of 1.
The next digit of our result is 0. 
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

On to step 2:
15 divided by 31 is 0 with a remainder of 15.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 15, we get 15.
Include the next digit (1) from the dividend after 15, then repeat: 151 / 31

Step 3:
151 divided by 31 is 4 with a remainder of 27.
Use 4 as the next digit of our solution. 
Result so far: 4.0
The remainder is 27 after subtracting 124 from 151.
Bring next digit (5) of the dividend behind the 27 and repeat the process: 275 / 31

Going ahead to step 4:
31 can be fit into 275 8 times, resulting in a remainder of 27.
The next digit of our result is 8. 
Result so far: 48.0
Subtract 248 from 275 to get 27.
Include the next digit (9) from the dividend after 27, then repeat: 279 / 31

Going ahead to step 5:
When dividing 279 by 31, we get 9 with a remainder of 0.
The next digit of our result is 9. 
Result so far: 489.0
Subtracting 279 from 279 leaves us with 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 31

Step 6:
The number 31 fits into 8 0 times, leaving a remainder of 8.
The next digit of our result is 0. 
Result so far: 4890.0
Subtracting 0 from 8 leaves us 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 7:
80 divided by 31 is 2 with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 4890.2
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.

Advancing to step 8:
The number 31 fits into 180 5 times, leaving a remainder of 25.
Use 5 as the next digit of our solution. 
Result so far: 4890.25
If we take 155 away from 180, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 9:
When dividing 250 by 31, we get 8 with a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 4890.258
The remainder is 2 after subtracting 248 from 250.
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 10:
20 divided by 31 is 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 4890.258
Subtract 0 from 20 to get 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 11:
31 can be fit into 200 6 times, resulting in a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 4890.25806
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.

Moving on to step 12:
140 divided by 31 is 4 with a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 4890.258064
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.

On to step 13:
160 divided by 31 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 4890.2580645
Subtracting 155 from 160 leaves us 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.

Step 14:
50 divided by 31 is 1 with a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 4890.25806451
If we subtract 31 from 50, we 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.

After the division, we end up with 4890.25806451 and a remainder of 1.9e-08.