We look at the division of 793084 by 31 
The aim is to understand the frequency of 31 in 793084.

Going ahead to step 1:
31 can be fit into 7 0 times, resulting in a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Append the next digit (9) from the dividend to 7 and continue with: 79 / 31

Going ahead to step 2:
If we divide 79 by 31, we get 2 and a remainder of 17.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we take 62 away from 79, we end up with 17.
Bring next digit (3) of the dividend behind the 17 and repeat the process: 173 / 31

Going ahead to step 3:
31 goes into 173 5 times with a remainder of 18.
The number 5 becomes the next digit in our result. 
Result so far: 25.0
Deduct 155 from 173 and we're left with 18.
Take the next digit (0) from the dividend and append it to 18, then repeat: 180 / 31

Step 4:
When dividing 180 by 31, we get 5 with a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 255.0
Subtracting 155 from 180 leaves us with 25.
Bring next digit (8) of the dividend behind the 25 and repeat the process: 258 / 31

On to step 5:
The number 31 fits into 258 8 times, leaving a remainder of 10.
Record the quotient 8 as the next digit in the result. 
Result so far: 2558.0
Subtracting 248 from 258 leaves us with 10.
Append the next digit (4) from the dividend to 10 and continue with: 104 / 31

Advancing to step 6:
The number 31 fits into 104 3 times, leaving a remainder of 11.
Use 3 as the next digit of our solution. 
Result so far: 25583.0
Subtracting 93 from 104 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 7:
When dividing 110 by 31, we get 3 with a remainder of 17.
The number 3 becomes the next digit in our result. 
Result so far: 25583.3
If we subtract 93 from 110, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

On to step 8:
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: 25583.35
If we take 155 away from 170, we end up with 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 9:
The number 31 fits into 150 4 times, leaving a remainder of 26.
Put 4 as the next digit of the answer. 
Result so far: 25583.354
Subtracting 124 from 150 leaves us with 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 10:
If we divide 260 by 31, we get 8 and a remainder of 12.
The next digit of our result is 8. 
Result so far: 25583.3548
Subtract 248 from 260 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 11:
31 goes into 120 3 times with a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 25583.35483
The remainder is 27 after subtracting 93 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Let's proceed to step 12:
The number 31 fits into 270 8 times, leaving a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 25583.354838
Deduct 248 from 270 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 13:
When dividing 220 by 31, we get 7 with a remainder of 3.
The next digit of our result is 7. 
Result so far: 25583.3548387
Subtract 217 from 220 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 14:
31 can be fit into 30 0 times, resulting in a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 25583.3548387
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Our division results in 25583.3548387 with a remaining 3e-08.