The values of n are 99 and 100; the sum is 199.
Proof:
Definition: The "square-free" value of a number is that number divided by its largest square factor. For example: the square-free value of 180 is 5, since 180/36=5.
Lemma 1: If A is a multiple of 𝑘², then A/𝑘² has the same square-free value as A; in other words, we can "cancel out" squares.
Proof of Lemma 1: Let's say that the square-free value of A is 𝑥. Hence, there is a 𝑗 such that:
A = 𝑥𝑗²
Now:
A/𝑘² = 𝑥𝑗²/𝑘² = 𝑥(𝑗/𝑘)²
Hence the square-free value of A/𝑘² is 𝑥, the same as that of A.
Lemma 2: If A/B is a square, then A and B have the same square-free value.
Proof of Lemma 2: Let's say that the square-free value of A is 𝑎, and the square-free value of B is 𝑏. Hence, there are a 𝑗 and 𝑘 such that:
A = 𝑎𝑗²
B = 𝑏𝑘²
Now:
A/B = (𝑎/𝑏)(𝑗/𝑘)²
This means that for A/B to be a square, so does 𝑎/𝑏. But 𝑎 and 𝑏 are both "square-free" - they have no square factors except for 1! Hence, 𝑎/𝑏=1 and 𝑎=𝑏.
Lemma 3: The square-free value of (1!x2!x3!.....200!) is equal to 100!.
Proof of Lemma 3: When you multiply all of those together, it's not hard to see that it is equal to:
N = 1^200 * 2^199 * 3^198 * 4^197 ... * 200^1
1^200 is a square. 2^199 is equal to 2 times a square. 3^198 is a square, 4^197 equals 4 times a square. Using these facts, we can cancel out a lot of squares and show that the square-free value of N is equal to the square-free value of:
2 * 4 * 6 * 8 * ... * 200
Factoring a two out of all of those, we get:
2^100 * 1*2*3*4...*100 = 2^100 * 100!
Canceling out 2^100 (a square), we see that the square-free value of (1!x2!x3!.....200!) is equal to 100!.
Note: 100! = 100*99!, and so 100! and 99! have the same square-free value.
Since N and 100! have the same square-free value, N/100! is a square. Since N has the same square-free value as 99!, too, N/99! is a square.
Lemma 4: 100! does not have the same square-free value as any other factorial from 1! to 210!, except for 99!.
Proof of Lemma 4: Let's say there is a factorial, M!, that has the same square-free value of 100!. Hence 100!/M! (if M<100), or M!/100! (if M>100) would be a square.
M cannot be 98, 97, or 96, since 100!/98!, 100!/97!, or 100!/96! (100*99, 100*99*98, 100*99*98*97 respectively) are not squares. For any value of M less than 96, 100!/M! would have the prime factor 97 there once and only once in its prime factorization, since no number less than 97 has 97 as a prime factor. No square has a prime factor only once in it's prime factorization. So M cannot be less than 96.
M cannot be 101, since 101!/100! (101) is not a square. M cannot be anything more than that but less than 200 either, since no number higher than 101 and less than 200 has 101 as a prime factor, meaning that M!/100! has 101 as a prime factor only once in its prime factorization and hence not a square.
M cannot be anywhere from 201 to 210, as M!/100! would have the prime factor 199 once.
That means that M can only be 100 or 99.
Lemma 5: 211! is not a factor of (1!x2!x3!.....200!).
Proof of Lemma 5: The prime factor 211 is never seen in "(1!x2!x3!.....200!)".
Now, let's answer the question.
Because of Lemma 5, the "n" in your question (I'm going to call it 𝑛) is from 1 to 210.
Because of Lemma 2, 𝑛! has the same square-free value as (1!x2!x3!.....200!).
Because of Lemma 3, 𝑛 can be 100. It is also shown in Lemma 3 that 𝑛 can be 99.
Because of Lemma 4, 𝑛 cannot be anything other than 99 and 100.
Hence, 𝑛 is 99 or 100; the sum is 199.