Let us assume there exist numbers m and n, one even and one odd, such that A=(m+3n)(5m+7n)(7m+5n)(3m+n) is a perfect square. Let d be the greatest common divisor of m and n, and write m=dm1, n=dn1. Then m1 and n1 are coprime and A can be written as
A=d4(m1+3n1)(5m1+7n1)(7m1+5n1)(3m1+n1).
Let B=(m1+3n1)(5m1+7n1)(7m1+5n1)(3m1+n1). Since A is a perfect square, so is B.
Let p be a positive integer that divides both m1+3n1 and 5m1+7n1. Since m1 and n1 have different parity, the numbers m1+3n1 and 5m1+7n1 are odd and p must be odd, too. On the other hand we have
p∣5⋅(m1+3n1)−(5m1+7n1)=8n1,
p∣3⋅(5m1+7n1)−7(m1+3n1)=8m1,
so p∣m1 and p∣n1, which implies p=1. We have shown that m1+3n1 and 5m1+7n1 are coprime.
Let q be a positive integer such that q∣m1+3n1 and q∣7m1+5n1. Again, q must be odd and
q∣7(m1+3n1)−(7m1+5n1)=16n1,
q∣3(7m1+5n1)−5(m1+3n1)=16m1.
So, q∣n1 and q∣m1, which implies q=1. We conclude that m1+3n1 and (5m1+7n1)(7m1+5n1) are coprime.
Similarly, one can show that 3m1+n1 and (5m1+7n1)(7m1+5n1) are coprime. Now, assume r∣m1+3n1 and r∣3m1+n1. Then r∣3(m1+3n1)−(3m1+n1)=8n1 and r∣3(3m1+n1)−(m1+3n1)=8m1, so r∣n1, r∣m1 and r=1.
We have shown that the two factors 3m1+n1 and m1+3n1 are coprime to any other factor of B=(m1+3n1)(3m1+n1)(5m1+7n1)(7m1+5n1), and since B is a perfect square, we see that m1+3n1 and 3m1+n1 must be perfect squares as well. Denote them by a2 and b2, respectively. Then
(a−b)(a+b)=a2−b2=2(n1−m1).
The right-hand side is divisible by 2 but not by 4 because n1 and m1 have different parity. On the other hand, a−b and a+b have the same parity and since their product is divisible by 2, it must also be divisible by 4. This contradiction shows that
(m+3n)(5m+7n)(7m+5n)(3m+n)
cannot be a perfect square.