<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>845</id>
  <path>/www/nrich/html/content/02/05/six6/</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 style=&quot;font-weight: bold;&quot;&gt;6! = 6 x 5 x 4 x 3 x 2 x 1&lt;/p&gt;
&lt;p style=&quot;font-weight: bold;&quot;&gt;The highest power of 2 that divides exactly into 6! is 4. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;((6!) &lt;span style=&quot;font-weight: bold;&quot;&gt;/&lt;/span&gt; (2 &lt;sup&gt;4&lt;/sup&gt; ) = 45)&lt;/strong&gt;&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;p&gt;What is the highest power of two that divides exactly into 100! (100 x 99 x 98 x 97 x ... x 1)?&lt;/p&gt;
&lt;p&gt;What is the highest power of three that divides exactly into 100! ?&lt;/p&gt;
&lt;p&gt;.......&lt;/p&gt;
&lt;p&gt;Can you see any patterns in the calculation of the highest powers of each number that divides exactly into 100!?&lt;/p&gt;
&lt;p&gt;Can you generalise your findings to any factorial and any number?&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;p&gt;There were lots of interesting patterns that could be identified
and explained in this problem. Ngoc from Nguyen Truong To junior
high school (Vietnam) identified some interesting patterns along
with giving the answers. Well done Ngoc. It is also good, once you
have identified patterns, to try to explain them in terms of the
mathematics they came from. So where do the patterns Ngoc and
Andrei (School 205, Bucharest) come from?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Ngoc's contribution:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The highest power of 2 that divides exactly to 100! is 97&lt;br&gt;&lt;/br&gt;
The highest power of 3 that divides exactly to 100! is 48&lt;/p&gt;
&lt;p&gt;General form:&lt;/p&gt;
&lt;p&gt;with all n, k are positive integers, n &amp;gt; k&lt;br&gt;&lt;/br&gt;
The highest power of k (called y) that divides exactly to n!
is:&lt;/p&gt;
y = n/k + n/k &lt;sup&gt;2&lt;/sup&gt; + n/k &lt;sup&gt;3&lt;/sup&gt; + ... + n/k
&lt;sup&gt;z&lt;/sup&gt; &lt;br&gt;&lt;/br&gt;
with n/k, n/k &lt;sup&gt;2&lt;/sup&gt; ... are nearest integers, and z &amp;lt; = n
&lt;br&gt;&lt;/br&gt;

&lt;p&gt;&lt;strong&gt;Andrei's Contribution&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I started working with 100!.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I observe that the greatest number - power of 2 that is smaller
than 100 is 2 &lt;sup&gt;6&lt;/sup&gt; . It enters 100 only once.&lt;/li&gt;
&lt;li&gt;Now, I consider the consecutive power of 2 smaller than 2
&lt;sup&gt;6&lt;/sup&gt; (2 &lt;sup&gt;5&lt;/sup&gt; ). This number enters in 100 3 times.
However, it is clear that 2 &lt;sup&gt;6&lt;/sup&gt; is divisible with 2
&lt;sup&gt;5&lt;/sup&gt; . Therefore, I take this number (3 - 1 =) 2
times.&lt;/li&gt;
&lt;li&gt;Now, I take 2 &lt;sup&gt;4&lt;/sup&gt; . It enters in 100 6 times. However,
three of the six combinations is also a multiple of 32 (including
64).So, I take this number (6 - 3 =) 3 times.&lt;/li&gt;
&lt;li&gt;It is now the turn of 2 &lt;sup&gt;3&lt;/sup&gt; . It enters in 100 12
times. However, here it is also the case that six were also
multiples of 16. So, there remain only six combinations.&lt;/li&gt;
&lt;li&gt;The case of 2 &lt;sup&gt;2&lt;/sup&gt; is similar it enters in 100 25
times, but there remain only 13 combinations.&lt;/li&gt;
&lt;li&gt;Finally, two. It enters in 100 50 times, but I use only 25 of
them.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To calculate the total highest power of two that divides exactly
into 100! is calculating by multiplying the corresponding power of
two with the number of solutions and multiplying the results,
because it is 100!:&lt;/p&gt;
&lt;p&gt;(2 &lt;sup&gt;6&lt;/sup&gt; ) &lt;sup&gt;1&lt;/sup&gt; * (2 &lt;sup&gt;5&lt;/sup&gt; ) &lt;sup&gt;2&lt;/sup&gt;
* (2 &lt;sup&gt;4&lt;/sup&gt; ) &lt;sup&gt;3&lt;/sup&gt; * (2 &lt;sup&gt;3&lt;/sup&gt; ) &lt;sup&gt;6&lt;/sup&gt; *
(2 &lt;sup&gt;2&lt;/sup&gt; ) &lt;sup&gt;13&lt;/sup&gt; * (2 &lt;sup&gt;1&lt;/sup&gt; ) &lt;sup&gt;25&lt;/sup&gt; =
2 &lt;sup&gt;6&lt;/sup&gt; * 2 &lt;sup&gt;10&lt;/sup&gt; * 2 &lt;sup&gt;12&lt;/sup&gt; * 2
&lt;sup&gt;18&lt;/sup&gt; * 2 &lt;sup&gt;26&lt;/sup&gt; * 2 &lt;sup&gt;25&lt;/sup&gt; = 2
&lt;sup&gt;97&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;I use the same method for dividing 100! into powers of
three:&lt;/p&gt;
 
&lt;table width=&quot;400&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Power of 3&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3n &amp;lt; 100!&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Combinations&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Result&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3 &lt;sup&gt;4&lt;/sup&gt;&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3 &lt;sup&gt;3&lt;/sup&gt;&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;3 - 1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3 &lt;sup&gt;2&lt;/sup&gt;&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;11 - 3&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;33&lt;/td&gt;
&lt;td&gt;33 - 11&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;&lt;/br&gt;

&lt;p&gt;Here the greatest power of three that divides exactly into
100!:&lt;/p&gt;
&lt;p&gt;(3 &lt;sup&gt;4&lt;/sup&gt; ) &lt;sup&gt;1&lt;/sup&gt; * (3 &lt;sup&gt;3&lt;/sup&gt; ) &lt;sup&gt;2&lt;/sup&gt;
* (3 &lt;sup&gt;2&lt;/sup&gt; ) &lt;sup&gt;8&lt;/sup&gt; * (3 &lt;sup&gt;1&lt;/sup&gt; ) &lt;sup&gt;22&lt;/sup&gt;
= 3 &lt;sup&gt;4&lt;/sup&gt; * 3 &lt;sup&gt;6&lt;/sup&gt; * 3 &lt;sup&gt;16&lt;/sup&gt; * 3
&lt;sup&gt;22&lt;/sup&gt; = 3 &lt;sup&gt;48&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Now, the general method with n! as the number, and x as the
number whose powers enter n!:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Calculate the greatest power of x &lt;sup&gt;k&lt;/sup&gt; that is smaller
than n and observe how many times it enters n. Note the result with
a.&lt;/li&gt;
&lt;li&gt;Calculate how many times x &lt;sup&gt;k-1&lt;/sup&gt; enters n. Then
subtract the precedent result (before subtracting something). Note
the result with b.&lt;/li&gt;
&lt;li&gt;Continue this method up to x &lt;sup&gt;1&lt;/sup&gt; .&lt;/li&gt;
&lt;li&gt;Now, calculate the greatest power of x that divides exactly
into n: (x &lt;sup&gt;k&lt;/sup&gt; ) &lt;sup&gt;a&lt;/sup&gt; * (x &lt;sup&gt;k-1&lt;/sup&gt; )
&lt;sup&gt;b&lt;/sup&gt; * (x &lt;sup&gt;k-2&lt;/sup&gt; ) &lt;sup&gt;c&lt;/sup&gt; * ... * (x
&lt;sup&gt;1&lt;/sup&gt; ) &lt;sup&gt;z&lt;/sup&gt;&lt;br&gt;&lt;/br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I would like to mention that I used for 100! and for the powers
of 2 the traditional method, it means 100 is divisible by 2
&lt;sup&gt;2&lt;/sup&gt; , 98 by 2, ? and so on, and I obtained the same result
as before.&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</solutionXML>
  <noteXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Possible extension.&lt;/span&gt; &lt;br&gt;&lt;/br&gt;
This problem is a special case of &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=1950&amp;amp;part=index&quot;&gt;
Factorial Fun.&lt;/a&gt; &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Possible support&lt;/span&gt; &lt;br&gt;&lt;/br&gt;
See also &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=1862&amp;amp;part=index&quot;&gt;
Fac Finding&lt;/a&gt; and &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=732&amp;amp;part=index&quot;&gt;
Factoring Factorials&lt;/a&gt; which are also special cases.&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</noteXML>
  <clueXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;
    







&lt;p&gt;Each number will appear as a factor in 100!. So, for example
100! = 100x99x98x...where 2&lt;sup&gt;2&lt;/sup&gt;is a factor of 100, 2 is a
factor of 98 and 2&lt;sup&gt;5&lt;/sup&gt; is a factor of 96. Are there
patterns to the powers of the number that appear as you consider
each term of the factorial? Can this pattern be generalised for
other numbers?&lt;/p&gt;


&lt;/mdoxml&gt;</clueXML>
  <canonXML/>
  <end_user_role>2</end_user_role>
  <difficulty>5</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>1</keystage3>
  <keystage4>0</keystage4>
  <keystage4plus>0</keystage4plus>
  <title>Powerful factorial</title>
  <description>6! = 6 x 5 x 4 x 3 x 2 x 1. The highest power of 2 that divides
exactly into 6! is 4 since (6!) / (2^4 ) = 45. What is the highest
power of two that divides exactly into 100!?</description>
  <spec_group>Calculations and Numerical Methods
    <specifier>Multiplication &amp; division</specifier>
  </spec_group>
  <spec_group>Numbers and the Number System
    <specifier>Factors and multiples</specifier>
  </spec_group>
  <spec_group>Numbers and the Number System
    <specifier>Factorials</specifier>
  </spec_group>
  <spec_group>Numbers and the Number System
    <specifier>Divisibility</specifier>
  </spec_group>
  <spec_group>Numbers and the Number System
    <specifier>Prime factors</specifier>
  </spec_group>
  <spec_group>Admin
    <specifier>Workshop</specifier>
  </spec_group>
</resource>