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

Step 1:
31 can be fit into 9 0 times, resulting in a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Include the next digit (6) from the dividend after 9, then repeat: 96 / 31

On to step 2:
If we divide 96 by 31, we get 3 and a remainder of 3.
Put 3 as the next digit of the answer. 
Result so far: 3.0
Subtract 93 from 96 to get 3.
Include the next digit (7) from the dividend after 3, then repeat: 37 / 31

Moving on to step 3:
If we divide 37 by 31, we get 1 and a remainder of 6.
The number 1 becomes the next digit in our result. 
Result so far: 31.0
If we take 31 away from 37, we end up with 6.
Append the next digit (8) from the dividend to 6 and continue with: 68 / 31

On to step 4:
68 divided by 31 is 2 with a remainder of 6.
The next digit of our result is 2. 
Result so far: 312.0
If we subtract 62 from 68, we get 6.
Include the next digit (4) from the dividend after 6, then repeat: 64 / 31

Going ahead to step 5:
When dividing 64 by 31, we get 2 with a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 3122.0
Deduct 62 from 64 and we're left 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.

Moving on to step 6:
When dividing 20 by 31, we get 0 with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 3122.0
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 7:
31 goes into 200 6 times with a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 3122.06
If we take 186 away from 200, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 8:
31 can be fit into 140 4 times, resulting in a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 3122.064
The remainder is 16 after subtracting 124 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 9:
31 goes into 160 5 times with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 3122.0645
If we subtract 155 from 160, we 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 10:
31 goes into 50 1 times with a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 3122.06451
If we take 31 away from 50, we end up with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Advancing to step 11:
If we divide 190 by 31, we get 6 and a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 3122.064516
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 12:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 3122.0645161
The remainder is 9 after subtracting 31 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 13:
90 divided by 31 is 2 with a remainder of 28.
The next digit of our result is 2. 
Result so far: 3122.06451612
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.

The final outcome is 3122.06451612, with a leftover of 2.8e-08.