Description Little Petya often travels to his grandmother in the countryside. The grandmother has a large garden, which can be represented as a rectangle 1 n in size, when viewed from above. This rectangle is divided into n equal square sections. The ga…