Puzzles
One hundred factorial
How many zeros does \(100!\) end with?
Show answer & extension
Hide answer & extension
The number of zeros at the end of a number is the same as the number of 10s in the product that makes the number. Each of these 10s is made by multiplying 5 by 2.
There will be more even numbers than multiples of 5 in \(100!\), so the number of 5s will tell us how many zeros the number ends in.
In \(100!\), there will be 20 multiples of 5 and 4 multiples of \(5^2\). This means that \(100!\) will end in 24 zeros.
Extension
How many zeros will \(n!\) end in?
Products and sums of squares
Show that the product of any two numbers, each of which is the sum of two square integers, is itself the sum of two square integers.
Show answer & extension
Hide answer & extension
The result of the multiplication can be written as:
$$(a^2+b^2)(c^2+d^2)$$
where \(a\), \(b\), \(c\) and \(d\) are integers. Expanding the brackets gives:
$$a^2c^2+b^2c^2+a^2d^2+b^2d^2$$
Next, if \((bd-ac)^2\) and \((bc+ad)^2\) are expanded, we get:
$$(bd-ac)^2=b^2d^2+a^2c^2-2abcd$$
$$(bc+ad)^2=b^2c^2+a^2d^2+2abcd$$
And so:
$$(a^2+b^2)(c^2+d^2)=(bd-ac)^2+(bc+ad)^2$$
We have written the product as the sum of two integers.
Extension
For which integers \(a\), \(b\), \(c\) and \(d\) can the result \((a^2+b^2)(c^2+d^2)\) be written as the sum of two square integers in more than one way?
A bit of Spanish
Each of the letters P, O, C, M, U and H represent a different digit from 0 to 9.
Which digit does each letter represent?
Show answer & extension
Hide answer & extension
POCO is 4595 and MUCHO is 68925.
Extension
The question could be written as \(POCO\times 15=MUCHO\).
For which values of \(n\) are the letters uniquely defined by \(POCO\times n = MUCHO\)?
Odd squares
Prove that 1 and 9 are the only square numbers where all the digits are odd.
Show answer & extension
Hide answer & extension
If \(n^2\) has all odd digits then the units digit of \(n\) must be odd. It can be checked that \(n\) cannot be a one digit number (except 1 or 3 as given in the question) as the tens digit will be even.
Therefore \(n\) can be written as \(10A+B\) where \(A\) is a positive integer and \(B\) is an odd positive integer.
$$n^2=(10A+B)^2\\=100A+20AB+B^2$$
Now consider the tens digit of this.
\(100A\) has no effect on this digit. The tens digit of \(20AB\) will be the units digit of \(2AB\) which will be even. The tens digit of \(B^2\) is even (as checked above). Therefore the tens digit of \(n^2\) is even.
Hence 1 and 9 are the only square numbers where all the digits are odd.
Extension
For which bases is this not true?
37
Take a three digit number where all the digits are the same (eg. 888).
Divide this number by the sum of its digits (eg. 888÷24).
Your answer is 37.
Prove that the answer will always be 37.
Show answer & extension
Hide answer & extension
Let the chosen digit be \(n\). The three digit number will be \(100n+10n+1n\) or \(111n\). The sum of the digits will be \(n+n+n\) or \(3n\). Therefore the division is:
$$\frac{111n}{3n}=\frac{111}{3}\\=37$$
Extension
If the numbers are written is a base other than 10, will this trick work? How could it be adapted to work in any base?
Four integers
\(a\), \(b\), \(c\) and \(d\) are four positive (and non-zero) integers.
$$abcd+abc+bcd+cda+dab+ab+bc+cd+da+ac+bd\\+a+b+c+d=2009$$
What is the value of \(a+b+c+d\)?
Show answer & extension
Hide answer & extension
$$abcd+abc+bcd+cda+dab+ab+bc+cd+da+ac+bd\\+a+b+c+d=(a+1)(b+1)(c+1)(d+1)-1$$
So:
$$(a+1)(b+1)(c+1)(d+1)=2010\\=2\times 3\times 5\times 67$$
Therefore \(a+b+c+d=1+2+4+66=73\).
Extension
Which numbers could 2009 be replaced with so that the problem still has a unique solution?
Half digits
Can you use each of the digits 1 to 9 to make a fraction which is equal to a half?
Frogs
Two frogs and two toads are standing on five lily pads.
The frogs and toads need to pass each other. They can only move by jumping one or two lily pads forward. In jumping two pads forwards they can jump over other frogs or toads.
How many jumps need to be made to get the frogs and toads past each other?
Show answer & extension
Hide answer & extension
Representing the frogs as \(F\), the toads as \(T\) and the spaces as \(\), the solution is as follows:
$$
F\ F\ \_\ T\ T\\
F\ \_\ F\ T\ T\\
F\ T\ F\ \_\ T\\
F\ T\ F\ T\ \_\\
F\ T\ \_\ T\ F\\
\_\ T\ F\ T\ F\\
T\ \_\ F\ T\ F\\
T\ T\ F\ \_\ F\\
T\ T\ \_\ F\ F\\
$$
Eight moves are required.
Extension
If there are three frogs on each side, how many moves are needed?
If there are three frogs on one side and two on the other, how many moves are needed?
If there are \(n\) frogs on one side and \(m\) on the other, how many moves are needed?