Figure bellow shows how a digital frequency divider or counter can be created using the flip-flops containing in the 4018 IC. Since the number is even, the counter is programmed to do the division by six without the need of additional logic. In this application only three of the internal stages ofthe 4018 are used. See the site for more information about the 4018 and the maximum operation frequency.