Generating pentagonal numbers
Checks if given operation on two indexes generates a pentagonal number