Looking for a perfect square

75 Views Asked by At

I have a base number and I add to this number in increments. Is it possible to calculate where is the nearest perfect square without going through all the numbers?

Example: Base number 11 Increment value 2 + x

11 + 3 + 4 + 5 + 6 + 7 = 36 (36 being a perfect square)