We look at the division of 336078 by 18 
The aim is to understand the frequency of 18 in 336078.

Moving on to step 1:
When dividing 3 by 18, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Grab the next digit (3) from the dividend, add it to 3, then carry on: 33 / 18

Step 2:
If we divide 33 by 18, we get 1 and a remainder of 15.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 18 from 33 to get 15.
Grab the next digit (6) from the dividend, add it to 15, then carry on: 156 / 18

Let's proceed to step 3:
156 divided by 18 is 8 with a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 18.0
Deduct 144 from 156 and we're left with 12.
Grab the next digit (0) from the dividend, add it to 12, then carry on: 120 / 18

Step 4:
120 divided by 18 is 6 with a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 186.0
If we subtract 108 from 120, we get 12.
Include the next digit (7) from the dividend after 12, then repeat: 127 / 18

Advancing to step 5:
When dividing 127 by 18, we get 7 with a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 1867.0
Deduct 126 from 127 and we're left with 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 18

Let's proceed to step 6:
18 goes into 18 1 times with a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 18671.0
Subtracting 18 from 18 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.

Let's proceed to step 7:
If we divide 0 by 18, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 18671.0
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 8:
18 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 18671.0
If we take 0 away from 0, we end up 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 18671.0, with a leftover of 0.0.