Pentagonal Number - Tests For Pentagonal Numbers

Tests For Pentagonal Numbers

The simplest way to test whether a positive integer x is a (non-generalized) pentagonal number is by computing

If n is a natural number, then x is the nth pentagonal number. If n is not a natural number, then x is not pentagonal.

Read more about this topic:  Pentagonal Number

Famous quotes containing the words tests and/or numbers:

    “Letters have to pass two tests before they can be classed as good: they must express the personality both of the writer and of the recipient.”
    —E.M. (Edward Morgan)

    “Publishers are notoriously slothful about numbers, unless they’re attached to dollar signs—unlike journalists, quarterbacks, and felony criminal defendents who tend to be keenly aware of numbers at all times.”
    —Hunter S. Thompson (b. 1939)