If the length of the subnormal at any point on the curve xyn=an+1 (a≠0) is constant, then the value of n is