A number is a perfect square exactly when subtracting 1, 3, 5, 7, … in order reaches 0. The number of subtractions is then the side of the square.
Lakshmi (49): 49−1=48, 48−3=45, 45−5=40, 40−7=33, 33−9=24, 24−11=13, 13−13=0.
We reach 0 after 7 subtractions, so 49=7×7. Lakshmi can plant 7 rows of 7 saplings.
Ravi (52): 52−1=51, 51−3=48, 48−5=43, 43−7=36, 36−9=27, 27−11=16, 16−13=3.
The next odd number is 15, which is more than 3. We cannot reach 0, so 52 is not a perfect square. Ravi cannot plant all 52 saplings in a full square.
The picture shows why the method works for 49: the 7 by 7 square is made of L-shapes of 1, 3, 5, …, 13 saplings.
