840860 ÷ 31 
The aim is to understand the frequency of 31 in 840860.

Let's proceed to step 1:
The number 31 fits into 8 0 times, leaving a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Include the next digit (4) from the dividend after 8, then repeat: 84 / 31

Moving on to step 2:
31 goes into 84 2 times with a remainder of 22.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Deduct 62 from 84 and we're left with 22.
Include the next digit (0) from the dividend after 22, then repeat: 220 / 31

Going ahead to step 3:
The number 31 fits into 220 7 times, leaving a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 27.0
Deduct 217 from 220 and we're left with 3.
Bring next digit (8) of the dividend behind the 3 and repeat the process: 38 / 31

Advancing to step 4:
31 goes into 38 1 times with a remainder of 7.
The next digit of our result is 1. 
Result so far: 271.0
The remainder is 7 after subtracting 31 from 38.
Grab the next digit (6) from the dividend, add it to 7, then carry on: 76 / 31

Advancing to step 5:
When dividing 76 by 31, we get 2 with a remainder of 14.
The next digit of our result is 2. 
Result so far: 2712.0
The remainder is 14 after subtracting 62 from 76.
Append the next digit (0) from the dividend to 14 and continue with: 140 / 31

Going ahead to step 6:
31 goes into 140 4 times with a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 27124.0
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 7:
If we divide 160 by 31, we get 5 and a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 27124.5
Subtract 155 from 160 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 8:
31 goes into 50 1 times with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 27124.51
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 9:
190 divided by 31 is 6 with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 27124.516
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.

Moving on to step 10:
The number 31 fits into 40 1 times, leaving a remainder of 9.
The next digit of our result is 1. 
Result so far: 27124.5161
If we subtract 31 from 40, 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.

Advancing to step 11:
If we divide 90 by 31, we get 2 and a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 27124.51612
Subtracting 62 from 90 leaves us 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.

Step 12:
280 divided by 31 is 9 with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 27124.516129
Subtracting 279 from 280 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 13:
31 can be fit into 10 0 times, resulting in a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 27124.516129
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.

Moving on to step 14:
100 divided by 31 is 3 with a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 27124.51612903
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.

The final outcome is 27124.51612903, with a leftover of 7e-09.