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

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

Archive

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