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

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

Archive

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