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:

    The test of literature is, I suppose, whether we ourselves live more intensely for the reading of it.
    Elizabeth Drew (1887–1965)

    The barriers of conventionality have been raised so high, and so strangely cemented by long existence, that the only hope of overthrowing them exists in the union of numbers linked together by common opinion and effort ... the united watchword of thousands would strike at the foundation of the false system and annihilate it.
    Mme. Ellen Louise Demorest 1824–1898, U.S. women’s magazine editor and woman’s club movement pioneer. Demorest’s Illustrated Monthly and Mirror of Fashions, p. 203 (January 1870)