You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//DESCRIPTION: First of all, every hexagonal number is a triangle number, so we only need to find numbers common to the pentagonals and the hexagonals. Then, noting that both sequences are simply sums of arithmetic series, we can easily generate both sequences via addition.