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 a given phrase would be: Is it worthy to be immortal? To make a beeline for something. Thats worthy of being immortal and is immortal in English idiom. I guess Ill split is not going to be immortal and is excludable, therefore excluded.”
—Robert Fitzgerald (19101985)
“He bundles every forkful in its place,
And tags and numbers it for future reference,
So he can find and easily dislodge it
In the unloading. Silas does that well.
He takes it out in bunches like birds nests.”
—Robert Frost (18741963)