580788 divided by 8 
The aim is to understand the frequency of 8 in 580788.

Let's proceed to step 1:
When dividing 5 by 8, we get 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 8

Advancing to step 2:
58 divided by 8 is 7 with a remainder of 2.
Use 7 as the next digit of our solution. 
Result so far: 7.0
If we take 56 away from 58, we end up with 2.
Grab the next digit (0) from the dividend, add it to 2, then carry on: 20 / 8

On to step 3:
When dividing 20 by 8, we get 2 with a remainder of 4.
The next digit of our result is 2. 
Result so far: 72.0
Deduct 16 from 20 and we're left with 4.
Take the next digit (7) from the dividend and append it to 4, then repeat: 47 / 8

Let's proceed to step 4:
8 goes into 47 5 times with a remainder of 7.
Use 5 as the next digit of our solution. 
Result so far: 725.0
Subtract 40 from 47 to get 7.
Fetch the next digit (8) from the dividend, attach it to 7 and continue: 78 / 8

Advancing to step 5:
8 can be fit into 78 9 times, resulting in a remainder of 6.
Write down 9 as next digit of the result. 
Result so far: 7259.0
Subtract 72 from 78 to get 6.
Fetch the next digit (8) from the dividend, attach it to 6 and continue: 68 / 8

Let's proceed to step 6:
8 goes into 68 8 times with a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 72598.0
The remainder is 4 after subtracting 64 from 68.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 7:
8 goes into 40 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 72598.5
If we take 40 away from 40, 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.

Advancing to step 8:
0 divided by 8 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 72598.5
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.

Moving on to step 9:
If we divide 0 by 8, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 72598.5
Subtracting 0 from 0 leaves us 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.

The final result is 72598.5 with a remainder of 0.0.