Puzzles
20 December
18 can be written as the sum of 3 consecutive (strictly) positive integers: 5 + 6 + 7.
18 can also be written as the sum of 4 consecutive (strictly) positive integers: 3 + 4 + 5 + 6.
18 is in fact the smallest number that can be written as the sum of both 3 and 4 consecutive (strictly) positive integers.
Today's number is the smallest number that can be written as the sum of both 12 and 13 consecutive (strictly) positive integers.
Show answer
Hide answer
The sum of 13 consecutive integers is 13 times the middle number, so today's number is a multiple of 13.
The sum of 12 consecutive integers is 6 times the sum of the two middle numbers, so today's number is also a multiple of 6.
Therefore today's number is a multiple of 78.
78 and 156 do not work (the numbers would not all be strictly positive), so today's number is 234.
24 December
There are six 3-digit numbers with the property that the sum of their digits is equal to the product of their digits. Today's number is the largest of these numbers.
6 December
Noel's grandchildren were in born in November in consecutive years. Each year for Christmas, Noel gives each of his grandchildren their age in pounds.
Last year, Noel gave his grandchildren a total of £208. How much will he give them in total this year?
Show answer
Hide answer
The only way to make 208 by adding consecutive numbers is
10+11+12+13+14+15+16+17+18+19+20+21+22. Therefore next year Noel will give his grandchildren a total of £221.
20 December
What is the largest number that cannot be written in the form \(10a+27b\), where \(a\) and \(b\) are nonnegative integers (ie \(a\) and \(b\) can be 0, 1, 2, 3, ...)?
Show answer & extension
Hide answer & extension
Any number can be written as \(10a+27b\) with integer \(a\) and \(b\), since \(1=3\times27-8\times10\).
So the problem may be thought of as asking when one of \(a\) and \(b\) must be negative.
Given one way of writing a number, you can get the others by shifting by 14*29. For example,
$$219 = 10\times30 - 27\times3$$ $$= 10 + 10\times29 - 27\times3 $$ $$= 1\times10 + 27\times11$$
So the question now becomes: When does this adjustment fail to eliminate negative numbers?
This is when you are at what Pedro calls "limit coefficients":
$$10\times(-1) + 27\times13 = 10\times28 + 27\times(-1) = 233$$
So the answer is 233.
Extension
Let \(n\) and \(m\) be integers. What is the largest number that cannot be written in the form \(na+mb\), where \(a\) and \(b\) are nonnegative integers?
Square pairs
Source: Maths Jam
Can you order the integers 1 to 16 so that every pair of adjacent numbers adds to a square number?
For which other numbers \(n\) is it possible to order the integers 1 to \(n\) in such a way?
Show answer
Hide answer
Yes: 8, 1, 15, 10, 6, 3, 13, 12, 4, 5, 11, 14, 2, 7, 9, 16.
It is clearly possible for the numbers 1 to 15 (remove the 16 from the end of the sequence above) and 1 to 17 (add 17 to the start of the sequence above).
The OEIS sequence
A090461 gives other numbers for which this is possible. It starts 15, 16, 17, 23, then includes every number from 25 onwards. It is conjectured, but not proven, that it is possible for every number above 25.
14 December
Today's number is the largest number that cannot be written in the form \(27a+17b\), where \(a\) and \(b\) are positive integers (or 0).
Combining multiples
In each of these questions, positive integers should be taken to include 0.
1. What is the largest number that cannot be written in the form \(3a+5b\), where \(a\) and \(b\) are positive integers?
2. What is the largest number that cannot be written in the form \(3a+7b\), where \(a\) and \(b\) are positive integers?
3. What is the largest number that cannot be written in the form \(10a+11b\), where \(a\) and \(b\) are positive integers?
4. Given \(n\) and \(m\), what is the largest number that cannot be written in the form \(na+mb\), where \(a\) and \(b\) are positive integers?
Show answer & extension
Hide answer & extension
1. 7
2. 11
3. 90
First, if \(n\) and \(m\) share a common factor other than 1, there will be no largest number: any number that is not a multiple of the common factor will be impossible to make.
If \(n\) and \(m\) are coprime, then considered the remainders when the multiples of \(n\) are divided by \(m\). For example, if \(n=3\) and \(m=7\):
Multiple | Remainder |
0 | 0 |
3 | 3 |
6 | 6 |
9 | 2 |
12 | 5 |
15 | 1 |
18 | 4 |
21 | 0 |
Once a number with a given remainder is reached, then all other numbers with that remainder can be reached by repeatedly adding \(m\). Once \(mn\) is reached, the remainders column will repeat itself. Before \(mn\), all remainders will appear (this can be shown by showing that there are \(m\) rows which much all have different remainders). Hence above \(mn\) all numbers can be made.
In the 3,7 example, the last remainder to be hit is 4. The highest number that cannot be made will be the highest number with remainder 4 that is less than 18 (when remainder 4 is hit).
In general, the last remainder will be hit at \(mn-n\). The number before this with the same remainder will be \(mn-n-m\). This will be the highest number that cannot be made.
Extension
Given \(n\), \(m\) and \(k\), what is the largest number that cannot be written in the form \(na+mb+kc\), where \(a\), \(b\) and \(c\) are positive integers?
Subsum
1) In a set of three integers, will there always be two integers whose sum is even?
2) How many integers must there be in a set so that there will always be three integers in the set whose sum is a multiple of 3?
3) How many integers must there be in a set so that there will always be four integers in the set whose sum is even?
4) How many integers must there be in a set so that there will always be three integers in the set whose sum is even?
Show answer & extension
Hide answer & extension
1) Yes, there must be either at least two even integers or at least two odd integers. The sum of two even integers is even. The sum of two odd integers is even.
2) Five.
3) Five.
4) An infinite number: in a list of odd integers, there will never be three integers which add up to an even number.
This puzzle leads naturally into the following extension:
Extension
How many integers must there be in a set so that there will always be \(a\) integers in the set whose sum is a multiple of \(b\)?
For which values of \(a\) and \(b\) will the answer to this be finite?