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

On to step 1:
The number 31 fits into 8 0 times, leaving 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.
Fetch the next digit (0) from the dividend, attach it to 8 and continue: 80 / 31

Moving on to step 2:
The number 31 fits into 80 2 times, leaving a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtracting 62 from 80 leaves us with 18.
Include the next digit (0) from the dividend after 18, then repeat: 180 / 31

Advancing to step 3:
The number 31 fits into 180 5 times, leaving a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 25.0
The remainder is 25 after subtracting 155 from 180.
Append the next digit (4) from the dividend to 25 and continue with: 254 / 31

On to step 4:
31 can be fit into 254 8 times, resulting in a remainder of 6.
Use 8 as the next digit of our solution. 
Result so far: 258.0
The remainder is 6 after subtracting 248 from 254.
Take the next digit (9) from the dividend and append it to 6, then repeat: 69 / 31

Step 5:
31 can be fit into 69 2 times, resulting in a remainder of 7.
The next digit of our result is 2. 
Result so far: 2582.0
If we take 62 away from 69, we end up with 7.
Bring next digit (3) of the dividend behind the 7 and repeat the process: 73 / 31

Advancing to step 6:
The number 31 fits into 73 2 times, leaving a remainder of 11.
The next digit of our result is 2. 
Result so far: 25822.0
If we take 62 away from 73, we end up 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.

Advancing to step 7:
When dividing 110 by 31, we get 3 with a remainder of 17.
The next digit of our result is 3. 
Result so far: 25822.3
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 8:
31 can be fit into 170 5 times, resulting in a remainder of 15.
The next digit of our result is 5. 
Result so far: 25822.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.

Advancing to step 9:
31 can be fit into 150 4 times, resulting in a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 25822.354
If we subtract 124 from 150, we 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 10:
31 goes into 260 8 times with a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 25822.3548
If we take 248 away from 260, we end up with 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:
If we divide 120 by 31, we get 3 and a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 25822.35483
Subtracting 93 from 120 leaves us 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 12:
If we divide 270 by 31, we get 8 and a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 25822.354838
If we take 248 away from 270, we end up 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.

Let's proceed to step 13:
When dividing 220 by 31, we get 7 with a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 25822.3548387
Deduct 217 from 220 and we're left 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.

Going ahead to step 14:
When dividing 30 by 31, we get 0 with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 25822.3548387
If we subtract 0 from 30, we 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.

The final result is 25822.3548387 with a remainder of 3e-08.