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

Let's proceed to step 1:
31 goes into 6 0 times with a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Grab the next digit (7) from the dividend, add it to 6, then carry on: 67 / 31

Going ahead to step 2:
31 can be fit into 67 2 times, resulting in a remainder of 5.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Deduct 62 from 67 and we're left with 5.
Fetch the next digit (7) from the dividend, attach it to 5 and continue: 57 / 31

Going ahead to step 3:
31 goes into 57 1 times with a remainder of 26.
Use 1 as the next digit of our solution. 
Result so far: 21.0
Deduct 31 from 57 and we're left with 26.
Take the next digit (6) from the dividend and append it to 26, then repeat: 266 / 31

On to step 4:
The number 31 fits into 266 8 times, leaving a remainder of 18.
Write down 8 as next digit of the result. 
Result so far: 218.0
Deduct 248 from 266 and we're left with 18.
Bring next digit (4) of the dividend behind the 18 and repeat the process: 184 / 31

Moving on to step 5:
The number 31 fits into 184 5 times, leaving a remainder of 29.
Record the quotient 5 as the next digit in the result. 
Result so far: 2185.0
If we subtract 155 from 184, we get 29.
Take the next digit (3) from the dividend and append it to 29, then repeat: 293 / 31

On to step 6:
31 goes into 293 9 times with a remainder of 14.
The next digit of our result is 9. 
Result so far: 21859.0
The remainder is 14 after subtracting 279 from 293.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 7:
31 goes into 140 4 times with a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 21859.4
Subtracting 124 from 140 leaves us 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.

Advancing to step 8:
If we divide 160 by 31, we get 5 and a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 21859.45
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.

Let's proceed to step 9:
50 divided by 31 is 1 with a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 21859.451
If we take 31 away from 50, we end up 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:
31 goes into 190 6 times with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 21859.4516
Deduct 186 from 190 and we're left 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.

Going ahead to step 11:
If we divide 40 by 31, we get 1 and a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 21859.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.

Moving on to step 12:
The number 31 fits into 90 2 times, leaving a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 21859.451612
Subtracting 62 from 90 leaves us 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.

Step 13:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 21859.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.

Going ahead to step 14:
31 goes into 10 0 times with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 21859.4516129
Subtracting 0 from 10 leaves us 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 21859.4516129, with a leftover of 1e-08.