You are viewing a single comment's thread. Return to all comments →
See, let us assume a number x inclusive in the range [a,b] Then,
a<=x<=b
if both a,b are positive apply square root across the equation
sqrt(a)<=sqrt(x)<=sqrt(b)
since we need perfect square os sqrt(x) should be an integer between the two number sqrt(a) and sqrt(b) Accordingly we apply floor and ceil
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Squares
You are viewing a single comment's thread. Return to all comments →
See, let us assume a number x inclusive in the range [a,b] Then,
a<=x<=b
if both a,b are positive apply square root across the equation
sqrt(a)<=sqrt(x)<=sqrt(b)
since we need perfect square os sqrt(x) should be an integer between the two number sqrt(a) and sqrt(b) Accordingly we apply floor and ceil