<?xml version="1.0" encoding="ISO-8859-1" ?>
  <resource>
  <id>456</id>
  <path>/www/nrich/html/content/03/02/15plus2/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;p&gt;Each of the numbers $1$ to $15$ is used to label one of the vertices or one of the edges of this plum tree.&lt;/p&gt;
&lt;p&gt;&lt;mdo:image alt=&quot;Plum Tree&quot; src=&quot;plum_tree.gif&quot;&gt;&lt;/mdo:image&gt;&lt;/p&gt;
&lt;p&gt;A graph is said to be &amp;#39;vertex magic&amp;#39; if the sum of the numbers on a vertex and on all the edges joined to that vertex is the same for each vertex. We call this the &amp;#39;magic sum&amp;#39;.&lt;/p&gt;
&lt;p&gt;A graph is said to be &amp;#39;edge magic&amp;#39; if, for each edge, the sum of the three numbers, on the edge and the two vertices at its ends, is the same. This is called the &amp;#39;magic constant&amp;#39;.&lt;/p&gt;
&lt;p&gt;A graph is said to be &amp;#39;totally magic&amp;#39; if it is both vertex magic and edge magic. The labellings to make it vertex magic and to make it edge magic do not have to be the same and the magic sum and magic constant do not have to be the same .&lt;/p&gt;
&lt;p&gt;Prove that this plum tree can be labelled to make it totally magic. Is there more than one edge magic labelling and more than one vertex magic labelling apart from symmetries and apart from simply exchanging the number on an extreme vertex with the number on its branch?&lt;/p&gt;
&lt;p&gt;Can you construct a tree of your own that is totally magic?&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;span class=&quot;editorial&quot;&gt;There are many possible magic labellings
and it is possible to work systematically and to use simple
algebraic arguments to find them all (see the hint to get started).
Also it is possible to find a magic vertex labelling and a magic
edge labelling for 20. Jo sent us her labelled
trees:&lt;/span&gt; &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
I thought about what conditions I had, and used them to narrow down
the number of possibilities, then just tried some things out, and
they worked! I expect that there are lots more possibilities, but I
don't know. Anyway, here are my trees. &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Vertex magic (each with sum $21$): 
&lt;div&gt;&lt;mdo:image height=&quot;305&quot; width=&quot;300&quot; src=&quot;plum_tree1.gif&quot; alt=&quot;Vertex magic tree&quot;&gt;&lt;/mdo:image&gt;&lt;mdo:image height=&quot;305&quot; width=&quot;300&quot; src=&quot;plum_tree2.gif&quot; alt=&quot;Vertex magic tree&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;
&lt;div&gt;&lt;mdo:image height=&quot;305&quot; width=&quot;300&quot; src=&quot;plum_tree3.gif&quot; alt=&quot;Vertex magic tree&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;
&lt;div&gt;Edge magic (each with sum $20$):&lt;/div&gt;
&lt;div&gt;&lt;mdo:image height=&quot;305&quot; width=&quot;300&quot; src=&quot;plum_tree5.gif&quot; alt=&quot;Edge magic tree&quot;&gt;&lt;/mdo:image&gt;&lt;mdo:image height=&quot;305&quot; width=&quot;300&quot; src=&quot;plum_tree4.gif&quot; alt=&quot;Edge magic tree&quot;&gt;&lt;/mdo:image&gt;&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</solutionXML>
  <noteXML/>
  <clueXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
This is a long and detailed hint which provides ideas, not just for
this particular problem, but also for other magic graph problems
where similar reasoning can be used.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Vertex Magic
Investigation&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
There are 8 vertices and 7 edges. Let's suppose the magic constant
is $h$ and this is the same at each vertex. The total of all the
numbers $1 + 2 + ... + 15 = 120$ but the numbers on the edges, say
$a,b,c,d,e,f,g$ are each counted twice so&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$$(a+b+c+d+e+f+g)+120=8h.$$ &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
So $a+b+c+d+e+f+g$ is a multiple of 8 and it is at least
$1+2+...+7=28$ so it must be $32$ or more. Hence $8h\geq 152$ and
$h\geq 19$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
It is easy to check, in a similar way, for the largest value that
$h$ can take. Now it is a matter of systematically checking the
possibilities for magic labellings with $h=19$ etc. 
&lt;div&gt;The techniques for finding the labellings are the same as used
for the &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=455&amp;amp;part=solution&quot;&gt;
Caterpillar problem.&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Edge Magic
Investigation&lt;/span&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
How do we discover what edge magic graphs there are? Here the three
order-3 vertices $a, b,c$ are counted three times and the sum of
all the numbers is again $120$. &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
$$2(a+b+c)+120=7k.$$ &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Hence $k$ is even and since $a+b+c\geq 6$ we have $7k\geq
120+12=132$ and so $k\geq 20$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If $k=20$ then $a+b+c=10$ so this triple is $1+2+7$ or $1+3+6$ or
$1+4+5$ or $2+3+5$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The possible edge sums for $k=20$ are:&lt;br&gt;&lt;/br&gt;
$1+4+15$, $1+5+14$, $1+6+13$, $1+7+12$, $1+8+11$, $1+9+10$,
$2+3+15$, $2+4+14$, $2+5+13$, $2+6+12$, $2+7+11$, $2+8+10$,
$3+4+13$, $3+5+12$, $3+6+11$, $3+7+10$, $3+8+9$, $4+5+11$,
$4+6+10$, $4+7+9$, $5+6+9$, $5+7+8$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
It is easy to find the edge magic labelling for $k=20$. &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Moreover, substituting $16-P$ for each of the P-labels giving a
magic total of $k$ will give the same numbers $1$ to $15$ and a
magic total of $48-k$. So for all the magic graphs you find with a
magic total of $20$ there are corresponding graphs with a magic
total of $28$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
It is left for you to find the edge magic labels for $k=20$ and for
$k=22$ (and correspondingly $k=26$) andfor $k=24$. Remember $k$
must be even and at least $20$ so these are the only
possibilities.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</clueXML>
  <canonXML/>
  <end_user_role>2</end_user_role>
  <difficulty>3</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>0</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>Plum Tree</title>
  <description>Label a graph with the numbers 1 to n, one on each vertex, one on
each arc. A Totally Magic graph is both Edge Magic and Vertex
Magic.</description>
  <spec_group>Algebra
    <specifier>Creating expressions/formulae</specifier>
  </spec_group>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Working systematically</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>
</resource>