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

On to step 1:
31 can be fit into 6 0 times, resulting in a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 6 leaves us with 6.
Bring next digit (8) of the dividend behind the 6 and repeat the process: 68 / 31

On to step 2:
31 can be fit into 68 2 times, resulting in a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtracting 62 from 68 leaves us with 6.
Take the next digit (0) from the dividend and append it to 6, then repeat: 60 / 31

Going ahead to step 3:
When dividing 60 by 31, we get 1 with a remainder of 29.
Write down 1 as next digit of the result. 
Result so far: 21.0
The remainder is 29 after subtracting 31 from 60.
Grab the next digit (3) from the dividend, add it to 29, then carry on: 293 / 31

Moving on to step 4:
When dividing 293 by 31, we get 9 with a remainder of 14.
Write down 9 as next digit of the result. 
Result so far: 219.0
Subtracting 279 from 293 leaves us with 14.
Include the next digit (5) from the dividend after 14, then repeat: 145 / 31

On to step 5:
31 can be fit into 145 4 times, resulting in a remainder of 21.
The number 4 becomes the next digit in our result. 
Result so far: 2194.0
Subtracting 124 from 145 leaves us with 21.
Append the next digit (4) from the dividend to 21 and continue with: 214 / 31

On to step 6:
When dividing 214 by 31, we get 6 with a remainder of 28.
Use 6 as the next digit of our solution. 
Result so far: 21946.0
Deduct 186 from 214 and we're left 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 7:
31 goes into 280 9 times with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 21946.9
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.

Advancing to step 8:
31 goes into 10 0 times with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 21946.9
If we subtract 0 from 10, we get 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 9:
31 goes into 100 3 times with a remainder of 7.
The next digit of our result is 3. 
Result so far: 21946.903
Subtract 93 from 100 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 10:
If we divide 70 by 31, we get 2 and a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 21946.9032
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.

Step 11:
31 goes into 80 2 times with a remainder of 18.
The next digit of our result is 2. 
Result so far: 21946.90322
The remainder is 18 after subtracting 62 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The final outcome is 21946.90322, with a leftover of 1.8e-05.