mscroggs.co.uk
mscroggs.co.uk

subscribe

Sunday Afternoon Maths XXVI

 Posted on 2014-08-24 

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

Twenty-one

Scott and Virgil are playing a game. In the game the first player says 1, 2 or 3, then the next player can add 1, 2 or 3 to the number and so on. The player who is forced to say 21 or above loses. The first game went like so:
Scott: 3
Virgil: 4
Scott: 5
Virgil: 6
Scott: 9
Virgil: 12
Scott: 15
Virgil 17
Scott: 20
Virgil: 21
Virgil loses.
To give him a better chance of winning, Scott lets Virgil choose whether to go first or second in the next game. What should Virgil do?

Show answer & extension

Tags: numbers, games
If you enjoyed these puzzles, check out Advent calendar 2023,
puzzles about percentages, 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

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

Archive

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