Let's divide 804704 by 31
The aim is to understand the frequency of 31 in 804704.

Advancing to step 1:
When dividing 8 by 31, we get 0 with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Take the next digit (0) from the dividend and append it to 8, then repeat: 80 / 31

Step 2:
31 can be fit into 80 2 times, resulting in a remainder of 18.
The next digit of our result is 2. 
Result so far: 2.0
Deduct 62 from 80 and we're left with 18.
Bring next digit (4) of the dividend behind the 18 and repeat the process: 184 / 31

Advancing to step 3:
When dividing 184 by 31, we get 5 with a remainder of 29.
Write down 5 as next digit of the result. 
Result so far: 25.0
If we take 155 away from 184, we end up with 29.
Fetch the next digit (7) from the dividend, attach it to 29 and continue: 297 / 31

On to step 4:
The number 31 fits into 297 9 times, leaving a remainder of 18.
The next digit of our result is 9. 
Result so far: 259.0
If we take 279 away from 297, we end up with 18.
Grab the next digit (0) from the dividend, add it to 18, then carry on: 180 / 31

Advancing to step 5:
The number 31 fits into 180 5 times, leaving a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 2595.0
The remainder is 25 after subtracting 155 from 180.
Take the next digit (4) from the dividend and append it to 25, then repeat: 254 / 31

Moving on to step 6:
If we divide 254 by 31, we get 8 and a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 25958.0
If we subtract 248 from 254, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 7:
When dividing 60 by 31, we get 1 with a remainder of 29.
Write down 1 as next digit of the result. 
Result so far: 25958.1
Deduct 31 from 60 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Let's proceed to step 8:
31 can be fit into 290 9 times, resulting in a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 25958.19
If we subtract 279 from 290, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 9:
31 goes into 110 3 times with a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 25958.193
Subtracting 93 from 110 leaves us 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 10:
170 divided by 31 is 5 with a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 25958.1935
If we subtract 155 from 170, we 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.

On to step 11:
31 can be fit into 150 4 times, resulting in a remainder of 26.
Put 4 as the next digit of the answer. 
Result so far: 25958.19354
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.

Step 12:
When dividing 260 by 31, we get 8 with a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 25958.193548
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.

Step 13:
The number 31 fits into 120 3 times, leaving a remainder of 27.
Write down 3 as next digit of the result. 
Result so far: 25958.1935483
Deduct 93 from 120 and we're left 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.

Moving on to step 14:
31 goes into 270 8 times with a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 25958.19354838
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

The final result is 25958.19354838 with a remainder of 2.2e-08.