<?xml version="1.0" encoding="ISO-8859-1" ?>
  <resource>
  <id>455</id>
  <path>/www/nrich/html/content/03/02/15plus1/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;p&gt;In the Land of Trees all the caterpillars have numbers on their feet and hips (vertices) and on their legs and body segments (edges) as shown on this 4 legged caterpillar. All the whole numbers from 1 to $v+e$ are used where $v$ is the number of vertices and $e$ is the number of edges. Biologists classify them by their vertex-sums.&lt;/p&gt;
&lt;p&gt;A vertex sum is the total of the numbers on the vertex and all the edges at that vertex.&lt;/p&gt;
&lt;p&gt;The caterpillar shown has vertex sums:&lt;/p&gt;
&lt;p&gt;11 (8+3), 13 (9+4), 15 (10+5), 17 (11+6), 25 (8+9+7+1) and 30 (7+10+11+2).&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;
&lt;p&gt;&lt;mdo:image alt=&quot;Magic Caterpillar&quot; height=&quot;194&quot; src=&quot;magic_c.gif&quot; width=&quot;370&quot;&gt;&lt;/mdo:image&gt;&lt;/p&gt;
&lt;p&gt;Show that one day a biologist may find a rare magic 4-legged caterpillar having the same sum at all its vertices and describe this creature.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Could there be two species of magic 4-legged caterpillars with different numberings?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Do magic 6-legged caterpillars exist?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;What about magic caterpillars with even more legs?&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;p&gt;&lt;span class=&quot;editorial&quot;&gt;Peter sent us this solution, using the starting point we gave:&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There are $6$ vertices and $5$ edges. Let&amp;#39;s suppose the magic constant is $S$ and this is the same at each vertex. The total of all the numbers $1 + 2 + ... + 11 = 66$ but the numbers on the edges, $a,b,c,d,e$ are counted twice. So, adding the magic sum at all six vertices:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$$(a+b+c+d+e)+66=6S$$&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
So $a+b+c+d+e$ is a multiple of $6$ and it is at least $1+2+3+4+5=15$ so it must be $18$ or more. Hence $6S\geq84$ and $S\geq14$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
We&amp;#39;re going to call the horizontal edge $e$, the front two edges $a$ and $b$, and the back two legs $c$ and $d$. Also, we see that the numbers $11$, $10$ and $9$ must all be in feet, as they&amp;#39;re too big to be anywhere else.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Let&amp;#39;s try $S=14$ first. We may as well take $a=3$, as the legs are all interchangeable at this stage.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Now if $b=4$, then we have $c=5$ (as the back legs are interchangeable). Also, we must have $d$ and the back foot as $6$ and $8$ (in some order), and we soon see that this isn&amp;#39;t possible (as we&amp;#39;d also need $e$ plus the top left hip to add up to $7$). If $b$ isn&amp;#39;t $4$, then we can assume that $c=4$. But similarly we find that we can&amp;#39;t have $b=9$ or $b=8$ or $b=7$. So $S$ isn&amp;#39;t $14$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Let&amp;#39;s try $S=16$. But then we need four pairs of numbers that sum to $16$ (one for each leg). We try: $(11,5)$, $(10,6)$, $(9,7)$, $(8,?)$ and we can&amp;#39;t repeat the $8$ so that isn&amp;#39;t possible.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
So let&amp;#39;s try $S=15$. This time, we may as well take $a=4$. There are only $4$ pairs that add up to $15$: $(11,4)$, $(10,5)$, $(9,6)$ and $(8,7)$. Call the number in the top left hip $f$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If $b=5$, then we have $c=6$ and $e+f=6$, which isn&amp;#39;t possible (as we don&amp;#39;t have the right numbers left).&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
So we can take $c=5$. If $b=8$, have $e+f=3$ and then we&amp;#39;ll need $f+g=4$, and this isn&amp;#39;t possible. If $b=7$, have $e+f=4$ and we also have $f+g=4$ and this isn&amp;#39;t possible either. Also we can&amp;#39;t have $d=8$, as this is too big. So the only possibility is the one shown below (and this does indeed work).&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
(When I say the only possibility, of course the front legs could be switched, or the back legs, or the front and back swapped, but it&amp;#39;s really the same caterpillar.)&lt;/p&gt;
&lt;div&gt;&lt;mdo:image alt=&quot;Magic caterpillar&quot; height=&quot;194&quot; src=&quot;magic_c_solution.gif&quot; width=&quot;370&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;editorial&quot;&gt;West Lakes Academy year 10 MadMathsClub tried to prove our claim that there was no magic 6-legged caterpillar. In fact, we were wrong! They found a magic 6-legged creature as shown below:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;editorial&quot;&gt;&lt;mdo:image alt=&quot;&quot; src=&quot;order6magiccaterpillar.GIF&quot; style=&quot;width: 555px; height: 268px;&quot;&gt;&lt;/mdo:image&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;editorial&quot;&gt;whose vertex-sums are all 23. Good work!&lt;/span&gt;&lt;/div&gt;&lt;/mdoxml&gt;</solutionXML>
  <noteXML/>
  <clueXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;

&lt;p&gt;The numbers on the edges are counted twice.&lt;/p&gt;
&lt;p&gt;The reasoning needed here is much the same as for the problem
Plum Tree. See the &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=456&amp;amp;part=clue&quot;&gt;
detailed hint for Plum
Tree.&lt;/a&gt;&lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=455&amp;amp;part=clue&quot;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</clueXML>
  <canonXML/>
  <end_user_role>2</end_user_role>
  <difficulty>5</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>0</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>Magic Caterpillars</title>
  <description>Put numbers 1 to n on the edges and vertices of a graph so that the
sum of the numbers on a vertex and on all arcs joined to that
vertex is the same for all vertices.</description>
  <spec_group>Algebra
    <specifier>Creating expressions/formulae</specifier>
  </spec_group>
  <spec_group>Decision Mathematics and Combinatorics
    <specifier>Networks/Graph Theory</specifier>
  </spec_group>
  <spec_group>Decision Mathematics and Combinatorics
    <specifier>Combinatorics</specifier>
  </spec_group>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Working systematically</specifier>
  </spec_group>
</resource>