correction: n should be such odd number that its square ends in either 9 or 5.
blackjack
flooble's webmaster puzzle