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

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

Archive

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