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

On to step 1:
The number 8 fits into 3 0 times, leaving a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Bring next digit (0) of the dividend behind the 3 and repeat the process: 30 / 8

Step 2:
The number 8 fits into 30 3 times, leaving a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we take 24 away from 30, we end up with 6.
Fetch the next digit (0) from the dividend, attach it to 6 and continue: 60 / 8

Going ahead to step 3:
60 divided by 8 is 7 with a remainder of 4.
Write down 7 as next digit of the result. 
Result so far: 37.0
If we subtract 56 from 60, we get 4.
Include the next digit (4) from the dividend after 4, then repeat: 44 / 8

Going ahead to step 4:
8 can be fit into 44 5 times, resulting in a remainder of 4.
Record the quotient 5 as the next digit in the result. 
Result so far: 375.0
Subtracting 40 from 44 leaves us with 4.
Bring next digit (5) of the dividend behind the 4 and repeat the process: 45 / 8

Going ahead to step 5:
45 divided by 8 is 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 3755.0
Deduct 40 from 45 and we're left with 5.
Bring next digit (9) of the dividend behind the 5 and repeat the process: 59 / 8

Going ahead to step 6:
8 can be fit into 59 7 times, resulting in a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 37557.0
If we take 56 away from 59, we end up with 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 8

Going ahead to step 7:
If we divide 39 by 8, we get 4 and a remainder of 7.
Record the quotient 4 as the next digit in the result. 
Result so far: 375574.0
Subtract 32 from 39 to get 7.
Grab the next digit (7) from the dividend, add it to 7, then carry on: 77 / 8

On to step 8:
8 goes into 77 9 times with a remainder of 5.
The next digit of our result is 9. 
Result so far: 3755749.0
If we subtract 72 from 77, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 9:
8 goes into 50 6 times with a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 3755749.6
If we subtract 48 from 50, 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.

Going ahead to step 10:
8 can be fit into 20 2 times, resulting in a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 3755749.62
The remainder is 4 after subtracting 16 from 20.
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 11:
If we divide 40 by 8, we get 5 and a remainder of 0.
The next digit of our result is 5. 
Result so far: 3755749.625
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.

Advancing to step 12:
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: 3755749.625
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.

Advancing to step 13:
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: 3755749.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.

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