hexagonal pattern formula class 6