hexagonal pattern formula