Well done to Liam from Wilbarston School and Ruth from Manchester High School for Girls for sending us their work on this problem.

Here is Liam's work on the problem for a Magic Growth Factor of 3. He used some ideas from his solution to Magic Potting Sheds to get started.

Let's start by saying there are going to be 27 plants in each field. In Magic Potting Sheds I used 8 which is 23 , so for magical growth factor 3 I'll try 33 . (9 doesn't work, because the morning of the day Mr McGregor planted the 1st garden he should have had 13 plants - a number which is not divisible by 3.)

Now, working back from the last garden, there must have been 9 after Mr McGregor planted his 2nd garden. Now as there has to be the same number of plants in each garden, before he planted his 2nd garden he had to have had 36 (9+27) plants... which means that he had 12 plants after planting 27 in his 1st garden making 39 altogether... which is 3 times 13.

You must start with 13 in order to get 27 in each garden.

Liam also used the same method to see that for a magic growth factor of 4, Mr McGregor would need to plant 64 plants in each garden, and would need 21 plants at the beginning.

Ruth, from Manchester High School for Girls, used algebra to find what Mr McGregor needs to do in each situation. Well done!

If the shed multiplies the number of plants by x every night, you start with x2 +x+1 plants and plant x3 every day. After the first night you have x3 + x2 +x and plant x3 , leaving x2 +x. After the second night you have x3 + x2 then plant x3 so you have x2 which becomes x3 to plant on the third day.

If you have n nights instead of 3, you start with xn-1 + xn-2 ++ x2 +x+1 plants and plant xn every day.
After the first day you have xn + xn-1 ++ x3 + x2 +x and plant xn .
Every night each term's exponent is increased by 1 and when you plant xn plants you remove 1 term until on the nth day the term that started as 1 is xn and the last lot of plants left.

When the numbers of plants halves each night, the smallest solution is to plant 1 plant each day. You need 21 + 22 + 23 =14 plants. Each night the exponent decreases and when you plant you get rid of a term. If you have n nights you start with 21 + 22 + 23 ++ 2n-2 + 2n-1 + 2n = 2n+1 -2.

When the number of plants is divided by y you start with y1 + y2 + y3 ++ yn-2 + yn-1 + yn = yn+1 -y y-1 and plant 1 each day.

Ruth also extended her solution one step beyond what we had asked.

When the number of plants is multiplied by x y , you need xn-1 y1 + xn-2 y2 ++ x2 yn-2 + x1 yn-1 + x0 yn plants for n nights and plant xn each night.