Seven, (25 points) Let $n$ be a positive integer, $a=[\sqrt{n}]$ (where $[x]$ denotes the greatest integer not exceeding $x$). Find the maximum value of $n$ that satisfies the following conditions:
(1) $n$ is not a perfect square;
(2) $a^{3} \mid n^{2}$.
(Zhang Tongjun
Zhu Yachun, problem contributor)