The solution to this puzzle is one I came up with when working on this puzzle: What is the answer of this math puzzle?
For two natural numbers a,b
, can you figure out how a#b
is defined, going from the following examples?
2#0 = 10
2#2 = 2
2#16 = 8
3#3 = 3
4#9 = 3
5#5 = 5
5#11 = 7
5#17 = 9
6#13 = 7
9#12 = 12
9#16 = 16
10#3 = 7
8#8=2
13#13=19
9#4=2
3#0=10
4#0=10
0#6=2
0#7=3
1000#1000=3000
0#5=5
0#8=2
0#12=4
5#23=3
5#31=3
0#0=2
52#3=3
53#1=3
41#43 = 3
43#41 = 3
1#0 = 10
5#0 = 10
20#0 = 20
4#1 = 3
100#1 = 3
1#8 = 2
1#08 = 4
1#234 = 2
12#34 = 2
123#4 = 4
Following this rule, work out 3#19
.
This is a mathematical puzzle, i.e., all numbers actually represent numbers and not letters of the alphabet. Also for the input the numerical value of the inputs and their representation are relevant, not the number of holes, its English name or anything like that. Programming and similar technical help can help, but is not required.
If it takes a while until it is solved, I would like to make this puzzle a bit more interactive. Instead of (or in addition to) giving hints, I will provide more examples on some of your suggested inputs that you think will help you find the pattern.
(The missing hints are the examples that have been added to the list of examples above)
Hint #7:
While it should be possible to write
a#b
as a single function, it is much easier and more intuitive to think of it as a procedure that takes the inputs and performs some algorithmic steps.
Hint #10:
There are no explicit "magic constants" involved (e.g., divide by 3). Someone mathematically interested might however argue that there is one implicit constant involved.
Hint #11:
0x2#0x2=2
0xF#0xF=3
, however15#15=5
(which should clarify the last hint)
Hint #13:
The operator utilizes concatenation.
Hint #16:
The observations made by theozh and tehtmi - specifically that the result is divisible by 2 and/or 5 iff
b
is divisible by 2 and/or 5 - holds in general (in base 10).
Hint #17:
This hint might have been really helpful, but I spilled my drink on my notepad and now it's unreadable because of a coffee smudge :/
Hint #18:
"The operator is in the best form of its life. It is a hunter and nothing stands in its way. If anything, it stands in the way of its prey. And it only takes out only the biggest prey - size is the only factor."
Hint #5+#12+#19 (merged to reduce confusion):
a#b
is always valid and unambiguous in every base larger than 2. It is impossible to get 0 as a result. There is a certain edge case that can only happen in base-2 that one might argue could lead toa#b
being undefined. But if you choose to define this edge case as 1 (which is mathematically reasonable) you get, e.g.0b1#0b1=1
and0b100#0b1=1
. In fact, if the twin prime conjecture holds, there are infinitely many such cases.
Hint #20
Leading zeros do not matter for
a
but they do matter forb
(see1#8
and1#08
example)
#
is the functionf(x, y) = -0.2679x² + 0.0536y² + 0.6429x - 0.4286y + 11.2857
and the value of 3#19 is approximately 2.7. (note, this should not be taken seriously) $\endgroup$