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 for, test and/or numbers:

    Conventional manners are a kind of literacy test for the alien who comes among us.
    Katharine Fullerton Gerould (1879–1944)

    I have come to believe ... that the stage may do more than teach, that much of our current moral instruction will not endure the test of being cast into a lifelike mold, and when presented in dramatic form will reveal itself as platitudinous and effete. That which may have sounded like righteous teaching when it was remote and wordy will be challenged afresh when it is obliged to simulate life itself.
    Jane Addams (1860–1935)

    He bundles every forkful in its place,
    And tags and numbers it for future reference,
    So he can find and easily dislodge it
    In the unloading. Silas does that well.
    He takes it out in bunches like birds’ nests.
    Robert Frost (1874–1963)