842155 divided by 31 
The aim is to understand the frequency of 31 in 842155.

On to step 1:
8 divided by 31 is 0 with a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Grab the next digit (4) from the dividend, add it to 8, then carry on: 84 / 31

Advancing to step 2:
When dividing 84 by 31, we get 2 with a remainder of 22.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we take 62 away from 84, we end up with 22.
Append the next digit (2) from the dividend to 22 and continue with: 222 / 31

Advancing to step 3:
If we divide 222 by 31, we get 7 and a remainder of 5.
The number 7 becomes the next digit in our result. 
Result so far: 27.0
If we take 217 away from 222, we end up with 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 31

On to step 4:
If we divide 51 by 31, we get 1 and a remainder of 20.
Put 1 as the next digit of the answer. 
Result so far: 271.0
Subtract 31 from 51 to get 20.
Grab the next digit (5) from the dividend, add it to 20, then carry on: 205 / 31

On to step 5:
When dividing 205 by 31, we get 6 with a remainder of 19.
The next digit of our result is 6. 
Result so far: 2716.0
The remainder is 19 after subtracting 186 from 205.
Take the next digit (5) from the dividend and append it to 19, then repeat: 195 / 31

Moving on to step 6:
31 can be fit into 195 6 times, resulting in a remainder of 9.
The number 6 becomes the next digit in our result. 
Result so far: 27166.0
If we subtract 186 from 195, 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.

Let's proceed to step 7:
90 divided by 31 is 2 with a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 27166.2
If we subtract 62 from 90, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 8:
280 divided by 31 is 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 27166.29
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 9:
When dividing 10 by 31, we get 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 27166.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.

Moving on to step 10:
When dividing 100 by 31, we get 3 with a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 27166.2903
The remainder is 7 after subtracting 93 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 11:
31 goes into 70 2 times with a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 27166.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.

Going ahead to step 12:
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: 27166.290322
Subtract 62 from 80 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

In conclusion, the division gives 27166.290322 with a balance of 1.8e-06.