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

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

Archive

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