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)

    Whenever a true theory appears, it will be its own evidence. Its test is, that it will explain all phenomena.
    Ralph Waldo Emerson (1803–1882)

    Out of the darkness where Philomela sat,
    Her fairy numbers issued. What then ailed me?
    My ears are called capacious but they failed me,
    Her classics registered a little flat!
    I rose, and venomously spat.
    John Crowe Ransom (1888–1974)