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

Step 1:
5 divided by 8 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 8

Moving on to step 2:
When dividing 50 by 8, we get 6 with a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 6.0
Subtracting 48 from 50 leaves us with 2.
Grab the next digit (6) from the dividend, add it to 2, then carry on: 26 / 8

Moving on to step 3:
8 goes into 26 3 times with a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 63.0
If we take 24 away from 26, we end up with 2.
Append the next digit (3) from the dividend to 2 and continue with: 23 / 8

Moving on to step 4:
When dividing 23 by 8, we get 2 with a remainder of 7.
The number 2 becomes the next digit in our result. 
Result so far: 632.0
If we take 16 away from 23, we end up with 7.
Grab the next digit (5) from the dividend, add it to 7, then carry on: 75 / 8

On to step 5:
75 divided by 8 is 9 with a remainder of 3.
Write down 9 as next digit of the result. 
Result so far: 6329.0
The remainder is 3 after subtracting 72 from 75.
Grab the next digit (4) from the dividend, add it to 3, then carry on: 34 / 8

Step 6:
8 goes into 34 4 times with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 63294.0
If we subtract 32 from 34, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
20 divided by 8 is 2 with a remainder of 4.
The next digit of our result is 2. 
Result so far: 63294.2
Subtracting 16 from 20 leaves us 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.
The next digit of our result is 5. 
Result so far: 63294.25
If we subtract 40 from 40, 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.

Let's proceed to step 9:
When dividing 0 by 8, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 63294.25
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.

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

In conclusion, the division gives 63294.25 with a balance of 0.0.