We divide 511934 by 8
The aim is to understand the frequency of 8 in 511934.

On to step 1:
5 divided by 8 is 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.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 8

Advancing to step 2:
51 divided by 8 is 6 with a remainder of 3.
The next digit of our result is 6. 
Result so far: 6.0
Subtract 48 from 51 to get 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 8

Advancing to step 3:
When dividing 31 by 8, we get 3 with a remainder of 7.
The next digit of our result is 3. 
Result so far: 63.0
If we subtract 24 from 31, we get 7.
Fetch the next digit (9) from the dividend, attach it to 7 and continue: 79 / 8

Moving on to step 4:
When dividing 79 by 8, we get 9 with a remainder of 7.
Use 9 as the next digit of our solution. 
Result so far: 639.0
Deduct 72 from 79 and we're left with 7.
Bring next digit (3) of the dividend behind the 7 and repeat the process: 73 / 8

Let's proceed to step 5:
8 goes into 73 9 times with a remainder of 1.
The next digit of our result is 9. 
Result so far: 6399.0
If we subtract 72 from 73, we get 1.
Take the next digit (4) from the dividend and append it to 1, then repeat: 14 / 8

Step 6:
When dividing 14 by 8, we get 1 with a remainder of 6.
Use 1 as the next digit of our solution. 
Result so far: 63991.0
The remainder is 6 after subtracting 8 from 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 7:
8 can be fit into 60 7 times, resulting in a remainder of 4.
Write down 7 as next digit of the result. 
Result so far: 63991.7
If we take 56 away from 60, 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.

Going ahead to step 8:
8 can be fit into 40 5 times, resulting in a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 63991.75
Deduct 40 from 40 and we're left 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.

Step 9:
The number 8 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 63991.75
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.

Advancing to step 10:
8 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 63991.75
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.

Our division results in 63991.75 with a remaining 0.0.