1°: s is the sum of the numbers in the array, x = n(n+1)/2-s
2°: s sum, p product, solve the linear system {n(n+1)/2-x+y=s; n!y = px}
2°: s sum, p product, solve the linear system {n(n+1)/2-x+y=s; n!y = px}
1: n(n+1)/2 - x + y = s
Product of first n natural numbers is represented as: n! The product of the numbers in array is p.
2: p x / y = n!
(multiply by x - add missing number to product and divide by y - remove duplicated number from product).