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

Advancing to step 1:
If we divide 9 by 31, we get 0 and a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Append the next digit (9) from the dividend to 9 and continue with: 99 / 31

Advancing to step 2:
31 goes into 99 3 times with a remainder of 6.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we take 93 away from 99, we end up with 6.
Bring next digit (9) of the dividend behind the 6 and repeat the process: 69 / 31

Moving on to step 3:
69 divided by 31 is 2 with a remainder of 7.
The number 2 becomes the next digit in our result. 
Result so far: 32.0
Subtracting 62 from 69 leaves us with 7.
Append the next digit (9) from the dividend to 7 and continue with: 79 / 31

Let's proceed to step 4:
The number 31 fits into 79 2 times, leaving a remainder of 17.
The next digit of our result is 2. 
Result so far: 322.0
Deduct 62 from 79 and we're left with 17.
Append the next digit (8) from the dividend to 17 and continue with: 178 / 31

Let's proceed to step 5:
178 divided by 31 is 5 with a remainder of 23.
Put 5 as the next digit of the answer. 
Result so far: 3225.0
Deduct 155 from 178 and we're left with 23.
Take the next digit (4) from the dividend and append it to 23, then repeat: 234 / 31

Moving on to step 6:
If we divide 234 by 31, we get 7 and a remainder of 17.
Put 7 as the next digit of the answer. 
Result so far: 32257.0
Deduct 217 from 234 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 7:
The number 31 fits into 170 5 times, leaving a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 32257.5
Subtract 155 from 170 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 8:
If we divide 150 by 31, we get 4 and a remainder of 26.
The next digit of our result is 4. 
Result so far: 32257.54
Subtract 124 from 150 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 9:
The number 31 fits into 260 8 times, leaving a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 32257.548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 10:
When dividing 120 by 31, we get 3 with a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 32257.5483
If we take 93 away from 120, we end up with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 11:
When dividing 270 by 31, we get 8 with a remainder of 22.
The next digit of our result is 8. 
Result so far: 32257.54838
The remainder is 22 after subtracting 248 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 12:
31 goes into 220 7 times with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 32257.548387
If we take 217 away from 220, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 13:
When dividing 30 by 31, we get 0 with a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 32257.548387
Subtract 0 from 30 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 14:
31 goes into 300 9 times with a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 32257.54838709
Subtract 279 from 300 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

The final outcome is 32257.54838709, with a leftover of 2.1e-08.