Create an equation using only the following numbers and mathematical symbols: $$4,2,1,2,4,+,=$$
-
3$\begingroup$ Welcome to Puzzling.SE! Is this a puzzle you created yourself? If not, you need to provide attribution to the original, otherwise this could be plagiarism and your question could be closed. $\endgroup$– F1KrazyMay 28, 2020 at 9:46
7 Answers
$4^2 = 12 +4$ (if exponentation is allowed)
-
-
2$\begingroup$ OP specifies "the following numbers", as distinct from "the following numerals". This doesn't seem to follow that rule. $\endgroup$ May 29, 2020 at 12:22
-
$\begingroup$ This would require rot13(pbapngrangvba, v.r. bs 1 naq 2 gb trg 12 ), not just rot13(rkcbaragvngvba) $\endgroup$– EarlienMay 31, 2020 at 13:01
Solution 1: $$2^{2^{1^4}} = +4$$ Another possible solution: $$^24 = + ^24^1$$ (See Knuth's up-arrow notation) Another solution: $$4+2=12_4$$ i.e. $$6 = 12 \text{ (base 4)}$$
-
1$\begingroup$ Could you expand/clarify the up-arrow solution? Maybe just linking to Tetration would be good enough. IIUC, ²4 means 4↑↑2 means a very big number — but wouldn't "24¹ = +24" require less explanation? $\endgroup$ May 28, 2020 at 18:19
-
1$\begingroup$ $^24^1 = (4^1)\uparrow\uparrow 2$ $\endgroup$ May 28, 2020 at 18:42
-
$\begingroup$ What does "but wouldn't "24¹ = +24" require less explanation?" mean? @Quuxplusone $\endgroup$ May 28, 2020 at 18:43
-
1$\begingroup$ I mean, your equation is of the form "x = +x¹", where x happens to be "²4"; but you could have used plain old "24" instead and then you wouldn't have needed to explain anything about tetration notation at all. Other solutions in the same vein are "24¹ = +24", "42¹ = +42" and "2₄¹ = +2₄" (base-4 notation). It just seemed like you picked the absolutely most obscure one! $\endgroup$ May 28, 2020 at 18:53
-
2
Suppose we permit ourselves just one freedom of interpretation: that "numbers" in the question actually means "digits", which means that a formula like 42+1=24 is potential solution. We do not allow any other freedom of interpretation: no exponentiation or anything else.
We must necessarily choose a base for the digits; there is no concept of digit without reference to a base. If we choose the digits to be decimal then none of the possible formulas happen to be true. However why should we restrict to that base? Since the digits are no higher than four, any of the bases 5 and above are possible. It so happens that under the base 6 interpretation, there is the following solution: $$4+14=22$$. No solution appears for base 5, or bases above 6.
We can make the some informal remarks and arguments about this:
Formulas are formed by inserting the two operators into permutations of the five digits. The operators are binary, requiring argument material on both sides, and so can only be inserted into the digit string in limited ways. The only possible formulas are of the form
nnn op n op n
ornn op nn op n
. The former cannot work in any base, becausennn + n = n
cannot be true (three digit number plus one digit number cannot equal one digit number, zero not being available) andnnn = n + n
similarly cannot be true. If a solution exists it must be of the formnn + nn = n
ornn = nn + n
. Of these, the former can, again, be squarely ruled out leaving onlynn = nn + n
: the possibility that in some base, adding a two-digit figure and one digit will leave a result expressible as a two-digit figure using the remaining digits.
Furthermore,
No solution adds 1 to an operand. 1 is the only odd digit we have, so if 1 is an operand by itself, the other two numbers are even. But adding 1 to an even number produces an odd number.
Furthermore,
No solution adds 2. Given
XY=ZW+2
, we needXY
andZW
to both be even, or both be odd. Our only tool for making an odd number is the digit1
, and we have only one, so we must use it only as a left digit:1A=BC+2
orBC=1A+2
. The former is eliminated due to1A
being necessarily smaller thanBC
sinceB
must be2
or4
. The latter,BC=1A+2
, seems viable, but only ifB
is not4
. That's because4C
is so large that it cannot be reached by adding2
to1A
, in any base: if adding2
toA
produces a carry, at most that will bump the1
to a2
. SinceB
is not4
, it must be2
, and soC
andA
are therefore4
: there is only one permutation which is exactly24=14+2
. But this can only hope to be true in a base in which4+2
produces a carry into the next digit place. The only two viable bases with that property are 5 and 6, and the equation is false in both. Since no solution adds 1 and no solution adds 2, all solutions must work by adding 4.
Finally,
We are left with the only viable solution pattern
XY=1Z+4
, whereX
,Y
andZ
are permutations of224
. The list of possible formulas is rather short, so let us write it:22=14+4
,24=12+4
and42=12+4
. The first is our base 6 solution. The second can only possibly work in base 5 and 6, and is false. In all higher bases, 12+4 is 16. The third permutation is rubbish. Thus $22 = 14 + 4$ in base 6 is unique.
-
-
$\begingroup$ @JS1 That solution requires a freedom of interpretation not being taken in this answer, namely that the $+$ operator may appear more than once. $\endgroup$– KazJun 1, 2020 at 8:02
-
$\begingroup$ Ah yes, I didn't realize that the + should be used only once. $\endgroup$– JS1Jun 1, 2020 at 23:29
Here's an answer that uses no "trickery" besides exponentiation (not even multi-digit numbers):
$2 + 2^{1^4} = 4$
$$+ = 42124$$
That is, we are defining a variable
"+"
to be equal to the value
42124. The question never said "+" couldn't be used as a variable name!
Some have suggested that this doesn't count as an "equation". The mathematical definition of an equation is essentially "any statement with an equals sign" (more formally, any mathematical statement that states the equivalence of two expressions). The items on both sides of my equation are expressions and I am asserting that they are equal, hence this is an equation.
For reference, a mathematics.SE discussion on the topic of "what counts as an equation" can be found here: https://math.stackexchange.com/questions/2738360/what-exactly-is-an-equation
-
2$\begingroup$ It should be an equation, not an assignment. $\endgroup$ May 29, 2020 at 19:25
-
$\begingroup$ @Eric: you don't consider $x=2$ to be an equation? $\endgroup$– JDLJun 1, 2020 at 7:20
-
$\begingroup$ @JDL I do not consider this an equation because why isn't
42124+=
an equation as well? It has an equality mark! I also assert that42124+
equals the empty expression. $\endgroup$ Jun 1, 2020 at 11:29 -
$\begingroup$ I'm not sure, mathematically, that there is such a thing as "the empty expression" (I know such a thing exists in many computer programming languages, but this is more of a maths puzzle than a CS one) $\endgroup$– JDLJun 1, 2020 at 11:30
-
1$\begingroup$ Mathematically, I'm fairly sure there is no such thing as a variable assignment (where, of course, the variable is named $+$) $\endgroup$ Jun 1, 2020 at 12:55