Note: The solution is unique when X,Y,N > 1.
For an explanation, refer to the solution submitted by Larry in this location.
blackjack
flooble's webmaster puzzle