uses
  Math;G := Power(Y, N) * Power(X, N - 1); //G=Y^N * X^(N-1)