How many counts the square number?

64 Views Asked by At

For example I have a number is $55$. Can I check this for how many counts number's square create this number.

For example I have $55$ So, I know this number total from 5 number, which are

$$55 = 1^2+ 2^2+ 3^2+ 4^2 + 5^2$$ (In total $5$ sqaure numbers)

I found the counts is $5$ for $55$ . How can I found counts any number. Is there any formula or equation? I dont want to know which number's square. I just want to know how many numbers squares create this number. In my example my answer is $5$. but If I can calculate this $10$ digit any number its too complex.

For example if my number was $652369$. How can I found how many numbers square total from? I just want to find how many number. I m sorry my english. I m using Delphi programming language.

Note: The numbers are not "consecutive" everytime.