Ta có:
\(\overline{abc}=100a+10b+c=n^2-1\left(1\right)\)
\(\overline{cba}=100c+10b+a=\left(n-2\right)^2=n^2-4n+4\left(2\right)\)
Từ (1) và (2) suy ra:
\(99a-99c=4n-5\\ \Leftrightarrow99\left(a-c\right)=4n-5\)
Suy ra: \(4n-5⋮99\)
Ta có: \(100\le n^2-1\le999\)
\(\Leftrightarrow101\le n^2\le1000\)
\(\Leftrightarrow11\le n\le31\)
\(\Leftrightarrow44\le4n\le124\)
\(\Leftrightarrow39\le4n-5\le119\)
Suy ra: \(4n-5=99\)
Suy ra: \(n=26\)
Suy ra: \(\overline{abc}=26^2-1=675\)