added methods to check whether a number is polygonal