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 2023

Advent calendar 2022

Advent calendar 2021

Advent calendar 2020


List of all puzzles

Tags

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

Archive

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