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

On to step 1:
If we divide 8 by 31, we get 0 and a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Append the next digit (6) from the dividend to 8 and continue with: 86 / 31

Let's proceed to step 2:
When dividing 86 by 31, we get 2 with a remainder of 24.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 62 away from 86, we end up with 24.
Append the next digit (3) from the dividend to 24 and continue with: 243 / 31

Advancing to step 3:
243 divided by 31 is 7 with a remainder of 26.
Use 7 as the next digit of our solution. 
Result so far: 27.0
Subtracting 217 from 243 leaves us with 26.
Grab the next digit (7) from the dividend, add it to 26, then carry on: 267 / 31

Moving on to step 4:
31 can be fit into 267 8 times, resulting in a remainder of 19.
Use 8 as the next digit of our solution. 
Result so far: 278.0
The remainder is 19 after subtracting 248 from 267.
Grab the next digit (9) from the dividend, add it to 19, then carry on: 199 / 31

Step 5:
The number 31 fits into 199 6 times, leaving a remainder of 13.
The next digit of our result is 6. 
Result so far: 2786.0
Deduct 186 from 199 and we're left with 13.
Grab the next digit (8) from the dividend, add it to 13, then carry on: 138 / 31

Step 6:
The number 31 fits into 138 4 times, leaving a remainder of 14.
Write down 4 as next digit of the result. 
Result so far: 27864.0
If we subtract 124 from 138, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 7:
When dividing 140 by 31, we get 4 with a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 27864.4
If we take 124 away from 140, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 8:
31 goes into 160 5 times with a remainder of 5.
The next digit of our result is 5. 
Result so far: 27864.45
Subtract 155 from 160 to 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.

Going ahead to step 9:
The number 31 fits into 50 1 times, leaving a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 27864.451
Subtracting 31 from 50 leaves us 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.

Moving on to step 10:
190 divided by 31 is 6 with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 27864.4516
Subtracting 186 from 190 leaves us 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.

On to step 11:
The number 31 fits into 40 1 times, leaving a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 27864.45161
Subtract 31 from 40 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 12:
31 can be fit into 90 2 times, resulting in a remainder of 28.
The next digit of our result is 2. 
Result so far: 27864.451612
If we subtract 62 from 90, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 13:
If we divide 280 by 31, we get 9 and a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 27864.4516129
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.

Step 14:
10 divided by 31 is 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 27864.4516129
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The final outcome is 27864.4516129, with a leftover of 1e-08.