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 (18791944)
“The test of a mans or womans breeding is how they behave in a quarrel. Anybody can behave well when things are going smoothly.”
—George Bernard Shaw (18561950)
“Our religion vulgarly stands on numbers of believers. Whenever the appeal is madeno matter how indirectlyto 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 (18031882)