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

On to step 1:
8 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 8

Let's proceed to step 2:
When dividing 50 by 8, we get 6 with a remainder of 2.
The next digit of our result is 6. 
Result so far: 6.0
If we take 48 away from 50, we end up with 2.
Grab the next digit (5) from the dividend, add it to 2, then carry on: 25 / 8

Moving on to step 3:
25 divided by 8 is 3 with a remainder of 1.
The number 3 becomes the next digit in our result. 
Result so far: 63.0
If we take 24 away from 25, we end up with 1.
Grab the next digit (7) from the dividend, add it to 1, then carry on: 17 / 8

Going ahead to step 4:
When dividing 17 by 8, we get 2 with a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 632.0
Subtract 16 from 17 to get 1.
Grab the next digit (3) from the dividend, add it to 1, then carry on: 13 / 8

Let's proceed to step 5:
13 divided by 8 is 1 with a remainder of 5.
Use 1 as the next digit of our solution. 
Result so far: 6321.0
Subtracting 8 from 13 leaves us with 5.
Fetch the next digit (3) from the dividend, attach it to 5 and continue: 53 / 8

Going ahead to step 6:
53 divided by 8 is 6 with a remainder of 5.
Write down 6 as next digit of the result. 
Result so far: 63216.0
Subtracting 48 from 53 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 7:
8 can be fit into 50 6 times, resulting in a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 63216.6
Subtract 48 from 50 to 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.

On to step 8:
20 divided by 8 is 2 with a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 63216.62
If we subtract 16 from 20, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 9:
40 divided by 8 is 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 63216.625
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.

On to step 10:
When dividing 0 by 8, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 63216.625
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 11:
8 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 63216.625
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 outcome is 63216.625, with a leftover of 0.0.