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

Going ahead to step 1:
8 goes into 7 0 times with a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Fetch the next digit (7) from the dividend, attach it to 7 and continue: 77 / 8

Let's proceed to step 2:
8 goes into 77 9 times with a remainder of 5.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
If we take 72 away from 77, we end up with 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 8

Advancing to step 3:
8 can be fit into 58 7 times, resulting in a remainder of 2.
The number 7 becomes the next digit in our result. 
Result so far: 97.0
Subtracting 56 from 58 leaves us with 2.
Bring next digit (4) of the dividend behind the 2 and repeat the process: 24 / 8

Advancing to step 4:
If we divide 24 by 8, we get 3 and a remainder of 0.
Use 3 as the next digit of our solution. 
Result so far: 973.0
If we subtract 24 from 24, we get 0.
Append the next digit (0) from the dividend to 0 and continue with: 0 / 8

Let's proceed to step 5:
When dividing 0 by 8, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 9730.0
The remainder is 0 after subtracting 0 from 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 6:
8 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 9730.0
If we subtract 0 from 0, we 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.

Advancing to step 7:
8 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 9730.0
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.

The final result is 9730.0 with a remainder of 0.0.