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
If you enjoyed this puzzle, check out Sunday Afternoon Maths XXVI,
puzzles about functions, or a random puzzle.

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

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

Archive

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