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)

    “The test of a man’s or woman’s breeding is how they behave in a quarrel. Anybody can behave well when things are going smoothly.”
    —George Bernard Shaw (1856–1950)

    “Our religion vulgarly stands on numbers of believers. Whenever the appeal is made—no matter how indirectly—to numbers, proclamation is then and there made, that religion is not. He that finds God a sweet, enveloping presence, who shall dare to come in?”
    —Ralph Waldo Emerson (1803–1882)