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

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

Archive

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