hexagonal dot pattern formula