mscroggs.co.uk
mscroggs.co.uk

subscribe

Puzzles

Odd and even outputs

Let \(g:\mathbb{N}\times\mathbb{N}\rightarrow\mathbb{N}\) be a function.
This means that \(g\) takes two natural number inputs and gives one natural number output. For example if \(g\) is defined by \(g(n,m)=n+m\) then \(g(3,4)=7\) and \(g(10,2)=12\).
The function \(g(n,m)=n+m\) will give an even output if \(n\) and \(m\) are both odd or both even and an odd output if one is odd and the other is even. This could be summarised in the following table:
\(n\)
oddeven
\(m\)oddevenodd
eoddeven
Using only \(+\) and \(\times\), can you construct functions \(g(n,m)\) which give the following output tables:
\(n\)
oddeven
\(m\)oddoddodd
eoddodd
\(n\)
oddeven
\(m\)oddoddodd
eoddeven
\(n\)
oddeven
\(m\)oddoddodd
eevenodd
\(n\)
oddeven
\(m\)oddoddodd
eeveneven
\(n\)
oddeven
\(m\)oddoddeven
eoddodd
\(n\)
oddeven
\(m\)oddoddeven
eoddeven
\(n\)
oddeven
\(m\)oddoddeven
eevenodd
\(n\)
oddeven
\(m\)oddoddeven
eeveneven
\(n\)
oddeven
\(m\)oddevenodd
eoddodd
\(n\)
oddeven
\(m\)oddevenodd
eoddeven
\(n\)
oddeven
\(m\)oddevenodd
eevenodd
\(n\)
oddeven
\(m\)oddevenodd
eeveneven
\(n\)
oddeven
\(m\)oddeveneven
eoddodd
\(n\)
oddeven
\(m\)oddeveneven
eoddeven
\(n\)
oddeven
\(m\)oddeveneven
eevenodd
\(n\)
oddeven
\(m\)oddeveneven
eeveneven

Show answer & extension

Tags: functions

Twenty-one

Scott and Virgil are playing a game. In the game the first player says 1, 2 or 3, then the next player can add 1, 2 or 3 to the number and so on. The player who is forced to say 21 or above loses. The first game went like so:
Scott: 3
Virgil: 4
Scott: 5
Virgil: 6
Scott: 9
Virgil: 12
Scott: 15
Virgil 17
Scott: 20
Virgil: 21
Virgil loses.
To give him a better chance of winning, Scott lets Virgil choose whether to go first or second in the next game. What should Virgil do?

Show answer & extension

Tags: numbers, games

Polya strikes out

Write the numbers 1, 2, 3, ... in a row. Strike out every third number beginning with the third. Write down the cumulative sums of what remains:
1, 2, 3, 4, 5, 6, 7, ...
1, 2, 3, 4, 5, 6, 7, ...
1, 2, 4, 5, 7, ...
1=1; 1+2=3; 1+2+4=7; 1+2+4+5=12; 1+2+4+5+7=19; ...
1, 3, 7, 12, 19, ...
Now strike out every second number beginning with the second. Write down the cumulative sums of what remains. What is the final sequence? Why do you get this sequence?

Show answer & extension

Tags: numbers

Whist

Messrs. Banker, Dentist, Apothecary and Scrivener played whist last night. (whist is a four player card game where partners sit opposite each other.) Each of these gentlemen is the namesake of another's vocation.
Last night, the apothecary partnered Mr. Apothecary; Mr. Banker's partner was the scrivener; on Mr. Scrivener's right sat the dentist.
Who sat on the banker's left?

Show answer & extension

Tags: logic, cards

Exact change

In the UK, the coins less than £1 are 1p, 2p, 5p, 10p, 20p and 50p. How many coins would I need to carry in my pocket so that I could make any value from 1p to 99p?
In the US, the coins less than $1 are 1¢, 5¢, 10¢, 25¢. How many coins would I need to carry in my pocket so that I could make any value from 1¢ to 99¢?

Show answer & extension

Tags: money, numbers

Square cross

A figure in the shape of a cross is made from five 1 x 1 squares, as shown. The cross is inscribed in a large square whose sides are parallel to the dashed square, formed by four vertices of the cross.
What is the area of the large outer square?

Show answer

Ten digit number

Can you create a 10-digit number, where the first digit is how many zeros in the number, the second digit is how many 1s in the number etc. until the tenth digit which is how many 9s in the number?

Show answer & extension

Tags: numbers

Mrs. Coldcream objected

"I object," said Councillor Mrs. Coldcream. "I see no reason why the boys should be so favoured at the expense of the girls."
This was at a meeting of the Holmshire Education Committee. It had been proposed to award 19 scholarships totalling £1000 to boys and girls of the county. It had been proposed that each girl receive a set amount and each boy receive £30 more than each girl.
Mrs. Coldcream pressed her point with such fervour that it was decided to reallocate the money. Each girl would receive £8 more than originally proposed, with the boys' scholarships scaled down accordingly.
How much did each boy and each girl receive?

Show answer & extension

Tags: numbers

Archive

Show me a random puzzle
 Most recent collections 

Advent calendar 2025

Advent calendar 2024

Advent calendar 2023

Advent calendar 2022


List of all puzzles

Tags

xor integers tournaments menace factors sequences probability averages mean dodecagons planes prime numbers coins algebra addition lists complex numbers powers decahedra symmetry consecutive integers chocolate cube numbers means squares polygons axes crosswords expansions square numbers numbers wordplay dates 3d shapes cards grids matrices lines geometric mean digital products shape perfect numbers even numbers advent functions dominos consecutive numbers sport circles irreducible numbers tangents colouring medians palindromes sums angles differentiation calculus quadratics ave polynomials indices chalkdust crossnumber multiplication folding tube maps regular shapes fractions multiplaction squares perimeter unit fractions percentages prime factors crossnumbers clocks people maths number cryptic crossnumbers money division cubics surds triangles star numbers spheres the only crossnumber bases elections proportion albgebra books integration area coordinates tiling christmas pascal's triangle doubling sets cryptic clues geometric means factorials geometry ellipses binary digits pentagons square roots quadrilaterals logic rectangles dice gerrymandering parabolas partitions determinants digital clocks routes 2d shapes neighbours products speed remainders shapes floors square grids scales trigonometry hexagons median arrows time rugby volume combinatorics multiples odd numbers range probabilty balancing graphs games taxicab geometry triangle numbers chess sum to infinity

Archive

Show me a random puzzle
▼ show ▼
© Matthew Scroggs 2012–2026