<?xml version="1.0" encoding="ISO-8859-1" ?>
  <resource>
  <id>419</id>
  <path>/www/nrich/html/content/02/06/15plus4/</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;Notice the following pattern, written in base 10:&lt;/p&gt;
&lt;p&gt;$$ \begin{eqnarray} 987654321&amp;amp;=&amp;amp;8\times 123456789 &amp;amp;+&amp;amp;9\\ 98765432&amp;amp;=&amp;amp;8\times 12345678 &amp;amp;+&amp;amp;8 \\ 9876543&amp;amp;=&amp;amp;8\times 1234567 &amp;amp;+&amp;amp;7 \\ 987654&amp;amp;=&amp;amp;8\times 123456 &amp;amp;+&amp;amp;6\\ &amp;amp;\vdots &amp;amp; \\ 9&amp;amp;=&amp;amp;8\times 1&amp;amp;+&amp;amp;1 \end{eqnarray} $$&lt;/p&gt;
&lt;p&gt;This patterns also holds in bases other than $10$. For example, in base $4$ we have $321 = 2 \times 123 + 3 $, and so on.&lt;/p&gt;
&lt;p&gt;Why is this the case?&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
 
&lt;table cellpadding=&quot;2&quot; summary=&quot;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$987654321$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$=$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$8$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$\times$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$123456789$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$+$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$9$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$98765432$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$=$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$8$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$\times$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$12345678$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$+$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$8$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$9876543$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$=$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$8$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$\times$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$1234567$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$+$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$7$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$987654$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$=$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$8$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$\times$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$123456$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$+$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$6$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;...&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$9$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$=$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$8$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$\times$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$1$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$+$&lt;/td&gt;
&lt;td style=&quot;text-align: center;&quot;&gt;$1$&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Saul Foresta explained as follows why this pattern holds in the
decimal system and in other number systems using bases other than
base $10$:&lt;/p&gt;
&lt;p&gt;I generalized the problem for any base $n$ and any number of
digits $r$ where $r$ can be anywhere from $1$ to $(n - 1)$.&lt;/p&gt;
&lt;p&gt;Then after rewriting both sides of the equality given in the
problem using sigma notation I arrived at the following:&lt;/p&gt;
&lt;p&gt;$$ {\sum_{k=1}^r (n-k)n^{r-k}} = {{(n-2)\sum_{k=1}^r kn^{r-k} +
r}} $$&lt;/p&gt;
&lt;p&gt;In each summation $k$ stands for the $k$th digit of the number
we're dealing with, reading from left to right. For example, in the
number $9876$, $k$ ranges from $1$-$4$, where $9$ is $k=1$, $8$ is
$k=2$, and so on.&lt;/p&gt;
&lt;p&gt;So all I need to do in order to prove that this pattern holds is
show that the left side of this equality does indeed equal the
right side. Taking the terms like $8 \times123456789$,
that is&lt;/p&gt;
&lt;p&gt;$$ (n-2)\sum_{k=1}^r kn^{r-k} $$&lt;/p&gt;
&lt;p&gt;over to the left hand side, we will prove that this expression
is equal to $r$.&lt;/p&gt;
&lt;p&gt;[(n-1)n &lt;sup&gt;r-1&lt;/sup&gt; + (n-2)n &lt;sup&gt;r-2&lt;/sup&gt; + (n-3)n
&lt;sup&gt;r-3&lt;/sup&gt; + ... + (n-r)] - (n-2)[n &lt;sup&gt;r-1&lt;/sup&gt; + 2n
&lt;sup&gt;r-2&lt;/sup&gt; + 3n &lt;sup&gt;r-3&lt;/sup&gt; + ... + r] =&lt;br&gt;&lt;/br&gt;
[n &lt;sup&gt;r&lt;/sup&gt; - n &lt;sup&gt;r-1&lt;/sup&gt; + n &lt;sup&gt;r-1&lt;/sup&gt; - 2n
&lt;sup&gt;r-2&lt;/sup&gt; + n &lt;sup&gt;r-2&lt;/sup&gt; - 3n &lt;sup&gt;r-3&lt;/sup&gt; + ...+ n - r]
- [n &lt;sup&gt;r&lt;/sup&gt; - 2n &lt;sup&gt;r-1&lt;/sup&gt; + 2n &lt;sup&gt;r-1&lt;/sup&gt; - 2.2n
&lt;sup&gt;r-2&lt;/sup&gt; + ... + (n-2)r]&lt;/p&gt;
&lt;p&gt;The coefficient of $n^{r-k}$ on this left hand side is $[1-k] -
[k+1-2k] = 0$ for&lt;/p&gt;
&lt;p&gt;$ ( 1 \le k \le r-1) $&lt;/p&gt;
and the coefficient of $n^r$ is also $0$. 
&lt;p&gt;The coefficient of $n^0$ is $[-r] - [-2(r)] = r$ and
hence this expression is equal to $r$ as required.&lt;/p&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;
&lt;p&gt;All the results can be checked by calculation. For an
explanation and proof it is most efficient to use a general method
that works for all bases. Moreover algebra reveals the structure
that is obscured when using particular numbers to check special
cases. Writing $b$ for the base then each expression can be written
in terms of $b$ and, by collecting like terms in the expression, or
equating the powers of $b$, it can be shown that each expression
holds. All that is required is some care over the algebraic
manipulation.&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</clueXML>
  <canonXML/>
  <end_user_role>2</end_user_role>
  <difficulty>4</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>0</keystage3>
  <keystage4>0</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>Basic Rhythms</title>
  <description>Explain why this pattern holds in other number systems using bases
other than base 10. 987654321 = 8 x 123456789 + 9, 98765432 = 8 x
12345678 + 8, 9876543 = 8 x 1234567 + 7, 987654 = 8 x 123456 + 6
... 9 = 8 x 1 + 1</description>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Mathematical reasoning &amp; proof</specifier>
  </spec_group>
  <spec_group>Numbers and the Number System
    <specifier>Number bases</specifier>
  </spec_group>
  <spec_group>Numbers and the Number System
    <specifier>Place value</specifier>
  </spec_group>
</resource>