We divide 864457 by 31
The aim is to understand the frequency of 31 in 864457.

Advancing to step 1:
If we divide 8 by 31, we get 0 and a remainder of 8.
Use 0 as the next digit of our solution. 
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

Step 2:
31 goes into 86 2 times with a remainder of 24.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we subtract 62 from 86, we get 24.
Take the next digit (4) from the dividend and append it to 24, then repeat: 244 / 31

Moving on to step 3:
31 can be fit into 244 7 times, resulting in a remainder of 27.
Record the quotient 7 as the next digit in the result. 
Result so far: 27.0
Deduct 217 from 244 and we're left with 27.
Grab the next digit (4) from the dividend, add it to 27, then carry on: 274 / 31

On to step 4:
If we divide 274 by 31, we get 8 and a remainder of 26.
The next digit of our result is 8. 
Result so far: 278.0
The remainder is 26 after subtracting 248 from 274.
Fetch the next digit (5) from the dividend, attach it to 26 and continue: 265 / 31

On to step 5:
31 goes into 265 8 times with a remainder of 17.
Put 8 as the next digit of the answer. 
Result so far: 2788.0
If we take 248 away from 265, we end up with 17.
Fetch the next digit (7) from the dividend, attach it to 17 and continue: 177 / 31

On to step 6:
The number 31 fits into 177 5 times, leaving a remainder of 22.
Use 5 as the next digit of our solution. 
Result so far: 27885.0
If we take 155 away from 177, 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.

Advancing to step 7:
If we divide 220 by 31, we get 7 and a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 27885.7
If we subtract 217 from 220, we 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.

Going ahead to step 8:
31 goes into 30 0 times with a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 27885.7
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 9:
31 goes into 300 9 times with a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 27885.709
Subtract 279 from 300 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Moving on to step 10:
210 divided by 31 is 6 with a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 27885.7096
Subtracting 186 from 210 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 11:
31 goes into 240 7 times with a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 27885.70967
Deduct 217 from 240 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 12:
31 goes into 230 7 times with a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 27885.709677
Subtract 217 from 230 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The quotient of the division is 27885.709677, and the remainder is 1.3e-06.