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

Advancing to step 1:
If we divide 3 by 8, we get 0 and a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Grab the next digit (0) from the dividend, add it to 3, then carry on: 30 / 8

Moving on to step 2:
If we divide 30 by 8, we get 3 and a remainder of 6.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Subtract 24 from 30 to get 6.
Append the next digit (2) from the dividend to 6 and continue with: 62 / 8

Advancing to step 3:
8 goes into 62 7 times with a remainder of 6.
Record the quotient 7 as the next digit in the result. 
Result so far: 37.0
Subtract 56 from 62 to get 6.
Grab the next digit (3) from the dividend, add it to 6, then carry on: 63 / 8

On to step 4:
The number 8 fits into 63 7 times, leaving a remainder of 7.
The number 7 becomes the next digit in our result. 
Result so far: 377.0
Subtract 56 from 63 to get 7.
Append the next digit (1) from the dividend to 7 and continue with: 71 / 8

Going ahead to step 5:
8 can be fit into 71 8 times, resulting in a remainder of 7.
The number 8 becomes the next digit in our result. 
Result so far: 3778.0
Subtract 64 from 71 to get 7.
Include the next digit (6) from the dividend after 7, then repeat: 76 / 8

Advancing to step 6:
The number 8 fits into 76 9 times, leaving a remainder of 4.
Write down 9 as next digit of the result. 
Result so far: 37789.0
Subtract 72 from 76 to 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.

Going ahead to step 7:
The number 8 fits into 40 5 times, leaving a remainder of 0.
The next digit of our result is 5. 
Result so far: 37789.5
Subtract 40 from 40 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.

Advancing to step 8:
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: 37789.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.

Step 9:
When dividing 0 by 8, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 37789.5
Deduct 0 from 0 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.

The quotient of the division is 37789.5, and the remainder is 0.0.