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:

    This, then, is the test we must set for ourselves; not to march alone but to march in such a way that others will wish to join us.
    Hubert H. Humphrey (1911–1978)

    The land cannot be cleansed of the blood that is shed therein, but by the blood of him that shed it.
    —Bible: Hebrew Numbers 35:33.