Hexagonal Number - Test For Hexagonal Numbers

Test For Hexagonal Numbers

One can efficiently test whether a positive integer x is an hexagonal number by computing

If n is an integer, then x is the nth hexagonal number. If n is not an integer, then x is not hexagonal.

Read more about this topic:  Hexagonal Number

Famous quotes containing the words test and/or numbers:

    Wild roses, at your back porch, break their blood,
    And bud to test surprises of sea air,
    Howard Moss (b. 1922)

    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)