By subtracting 1 from the positive base N integer having the form XYXYXYZY, we get a perfect square. It is known that each of X, Y and Z represents a different base N digit from 0 to N-1, and X is nonzero.

What are the integer value(s) of N, with 3 ≤ N ≤ 16 for which this is possible?