Let's divide 640122 by 8
The aim is to understand the frequency of 8 in 640122.

On to step 1:
When dividing 6 by 8, we get 0 with a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Append the next digit (4) from the dividend to 6 and continue with: 64 / 8

On to step 2:
If we divide 64 by 8, we get 8 and a remainder of 0.
The next digit of our result is 8. 
Result so far: 8.0
If we take 64 away from 64, we end up with 0.
Bring next digit (0) of the dividend behind the 0 and repeat the process: 0 / 8

Advancing to step 3:
8 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 80.0
The remainder is 0 after subtracting 0 from 0.
Bring next digit (1) of the dividend behind the 0 and repeat the process: 1 / 8

Advancing to step 4:
When dividing 1 by 8, we get 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 800.0
If we subtract 0 from 1, we get 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 8

Going ahead to step 5:
8 goes into 12 1 times with a remainder of 4.
Record the quotient 1 as the next digit in the result. 
Result so far: 8001.0
Deduct 8 from 12 and we're left with 4.
Append the next digit (2) from the dividend to 4 and continue with: 42 / 8

Let's proceed to step 6:
8 can be fit into 42 5 times, resulting in a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 80015.0
If we take 40 away from 42, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 7:
The number 8 fits into 20 2 times, leaving a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 80015.2
If we take 16 away from 20, we end up 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.

Step 8:
8 can be fit into 40 5 times, resulting in a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 80015.25
The remainder is 0 after subtracting 40 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 9:
If we divide 0 by 8, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 80015.25
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 10:
8 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 80015.25
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 80015.25 and a remainder of 0.0.