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:
“Wild roses, at your back porch, break their blood,
And bud to test surprises of sea air,”
—Howard Moss (b. 1922)
“Green grow the rushes-O
What is your one-O?”
—Unknown. Carol of the Numbers (l. 23)