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 2024

Advent calendar 2023

Advent calendar 2022

Advent calendar 2021


List of all puzzles

Tags

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

Archive

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