The greatest 5 digit perfect square number is
Greatest 5 digit number = 99999.
We need to find out the smallest number that must be subtracted from 99999 to get a perfect square.
Applying the division method:
3163¯¯¯9 ¯¯¯¯¯¯99 ¯¯¯¯¯¯999 ↓ 619961626 3899 3756 143
We can observe that 143 is the remainder.
So, if we subtract 143 from 99999, we will get a perfect square,
Largest 5 digit perfect square = 99999 - 143
= 99856.