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

On to step 1:
31 can be fit into 6 0 times, resulting in a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 6 leaves us with 6.
Fetch the next digit (4) from the dividend, attach it to 6 and continue: 64 / 31

Let's proceed to step 2:
If we divide 64 by 31, we get 2 and a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we subtract 62 from 64, we get 2.
Fetch the next digit (2) from the dividend, attach it to 2 and continue: 22 / 31

Moving on to step 3:
31 goes into 22 0 times with a remainder of 22.
Use 0 as the next digit of our solution. 
Result so far: 20.0
Subtract 0 from 22 to get 22.
Grab the next digit (4) from the dividend, add it to 22, then carry on: 224 / 31

Step 4:
31 can be fit into 224 7 times, resulting in a remainder of 7.
Put 7 as the next digit of the answer. 
Result so far: 207.0
Subtract 217 from 224 to get 7.
Append the next digit (6) from the dividend to 7 and continue with: 76 / 31

Advancing to step 5:
If we divide 76 by 31, we get 2 and a remainder of 14.
Write down 2 as next digit of the result. 
Result so far: 2072.0
Subtract 62 from 76 to get 14.
Include the next digit (8) from the dividend after 14, then repeat: 148 / 31

On to step 6:
The number 31 fits into 148 4 times, leaving a remainder of 24.
Record the quotient 4 as the next digit in the result. 
Result so far: 20724.0
Deduct 124 from 148 and we're left 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 7:
The number 31 fits into 240 7 times, leaving a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 20724.7
If we subtract 217 from 240, we get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 8:
If we divide 230 by 31, we get 7 and a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 20724.77
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.

After the division, we end up with 20724.77 and a remainder of 0.013.