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

On to step 1:
When dividing 6 by 31, we get 0 with a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Include the next digit (8) from the dividend after 6, then repeat: 68 / 31

On to step 2:
31 can be fit into 68 2 times, resulting in a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Deduct 62 from 68 and we're left with 6.
Include the next digit (2) from the dividend after 6, then repeat: 62 / 31

On to step 3:
The number 31 fits into 62 2 times, leaving a remainder of 0.
Use 2 as the next digit of our solution. 
Result so far: 22.0
If we subtract 62 from 62, we get 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 31

Let's proceed to step 4:
31 goes into 8 0 times with a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 220.0
If we take 0 away from 8, we end up with 8.
Take the next digit (7) from the dividend and append it to 8, then repeat: 87 / 31

Moving on to step 5:
When dividing 87 by 31, we get 2 with a remainder of 25.
Put 2 as the next digit of the answer. 
Result so far: 2202.0
Deduct 62 from 87 and we're left with 25.
Grab the next digit (7) from the dividend, add it to 25, then carry on: 257 / 31

Advancing to step 6:
31 goes into 257 8 times with a remainder of 9.
Put 8 as the next digit of the answer. 
Result so far: 22028.0
If we take 248 away from 257, we end up with 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 7:
90 divided by 31 is 2 with a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 22028.2
Subtract 62 from 90 to 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.

Going ahead to step 8:
If we divide 280 by 31, we get 9 and a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 22028.29
Subtract 279 from 280 to 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 9:
When dividing 10 by 31, we get 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 22028.29
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 10:
If we divide 100 by 31, we get 3 and a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 22028.2903
The remainder is 7 after subtracting 93 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 11:
The number 31 fits into 70 2 times, leaving a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 22028.29032
If we take 62 away from 70, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 12:
31 goes into 80 2 times with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 22028.290322
Deduct 62 from 80 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

In conclusion, the division gives 22028.290322 with a balance of 1.8e-06.