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

On to step 1:
When dividing 8 by 31, we get 0 with a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Fetch the next digit (0) from the dividend, attach it to 8 and continue: 80 / 31

On to step 2:
31 goes into 80 2 times with a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we take 62 away from 80, we end up with 18.
Fetch the next digit (4) from the dividend, attach it to 18 and continue: 184 / 31

Going ahead to step 3:
If we divide 184 by 31, we get 5 and a remainder of 29.
Use 5 as the next digit of our solution. 
Result so far: 25.0
If we subtract 155 from 184, we get 29.
Include the next digit (3) from the dividend after 29, then repeat: 293 / 31

Moving on to step 4:
When dividing 293 by 31, we get 9 with a remainder of 14.
Write down 9 as next digit of the result. 
Result so far: 259.0
The remainder is 14 after subtracting 279 from 293.
Append the next digit (1) from the dividend to 14 and continue with: 141 / 31

Advancing to step 5:
31 can be fit into 141 4 times, resulting in a remainder of 17.
Record the quotient 4 as the next digit in the result. 
Result so far: 2594.0
If we take 124 away from 141, we end up with 17.
Grab the next digit (1) from the dividend, add it to 17, then carry on: 171 / 31

Advancing to step 6:
The number 31 fits into 171 5 times, leaving a remainder of 16.
Put 5 as the next digit of the answer. 
Result so far: 25945.0
The remainder is 16 after subtracting 155 from 171.
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:
31 goes into 160 5 times with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 25945.5
Subtracting 155 from 160 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 8:
31 can be fit into 50 1 times, resulting in a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 25945.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.

Moving on to step 9:
31 can be fit into 190 6 times, resulting in a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 25945.516
The remainder is 4 after subtracting 186 from 190.
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:
When dividing 40 by 31, we get 1 with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 25945.5161
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 11:
If we divide 90 by 31, we get 2 and a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 25945.51612
If we take 62 away from 90, we end up 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.

Moving on to step 12:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 25945.516129
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 13:
The number 31 fits into 10 0 times, leaving a remainder of 10.
The next digit of our result is 0. 
Result so far: 25945.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.

Let's proceed 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: 25945.51612903
If we take 93 away from 100, we end up 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.

In conclusion, the division gives 25945.51612903 with a balance of 7e-09.