69
$\begingroup$

Can you find a way to make:

$0\ 0 \ 0 \ 0 = 8$

by adding any operations or symbols? You can use only these symbols:

$+,\ -,\ *,\ !,\ /,\ \hat\, ,\ ()$.

It is limited to this list, and concatenation is also allowed. You cannot add other numbers to the equation.

$\endgroup$
5
  • 46
    $\begingroup$ Just put a slash over the equal sign! $\endgroup$
    – Yout Ried
    Commented Sep 7, 2018 at 0:40
  • 14
    $\begingroup$ @YoutRied: standard loophole: neither funny nor creative. It's usually the first answer on any math puzzle. $\endgroup$ Commented Sep 7, 2018 at 18:40
  • 2
    $\begingroup$ Are we allowed to move anything, or is it insert only? $\endgroup$ Commented Sep 7, 2018 at 19:33
  • 3
    $\begingroup$ Are you allowed to concatenate operators? (e.g !!, **, --, and ++) $\endgroup$
    – Ole Tange
    Commented Sep 9, 2018 at 1:09
  • 1
    $\begingroup$ @OleTange The accepted answer does concatenate operators. Also, the question allows it. $\endgroup$ Commented Sep 9, 2018 at 13:59

24 Answers 24

114
$\begingroup$

I think that

$\left( 0! + 0! + 0! + 0! \right)!! = 8$.

This is because

$0! = 1$ and $4!! = 8$. Note that $\left( 0! + 0! + 0! + 0! \right)!! = \left( 1+1+1+1 \right)!! = \left (4 \right)!! = 8$.

This works and is valid because

The question says I’m allowed to use any of the following symbols in my answer, I am not restricted to using $!$ as an operation only.

$\endgroup$
12
  • 70
    $\begingroup$ for those who are confused, !! is a mathematical operator that gives the product of all positive integers upto the argument which have the same parity (odd/even) as the argument, its called a semifactorial. (thus 4!! is 2*4 = 8) $\endgroup$
    – Nobody
    Commented Sep 7, 2018 at 7:16
  • 14
    $\begingroup$ @casualcoder most people assume $n!!$ for an arbitrary non-negative integer $n$ is the same as $(n!)!$, but it's not. That brings up some confusion, so I usually write $n!_k$ to denote $n$ with $k$ factorials, but not on this site. $\endgroup$
    – Mr Pie
    Commented Sep 7, 2018 at 11:49
  • 4
    $\begingroup$ @casualcoder Google disagrees with Wolfram on this. $\endgroup$ Commented Sep 7, 2018 at 14:46
  • 13
    $\begingroup$ Google disagrees with Wolfram on a lot of things. When it comes to math, chances are Wolfram is the correct one. $\endgroup$
    – Alex Jones
    Commented Sep 7, 2018 at 23:03
  • 3
    $\begingroup$ @user1717828, user477343’s comment above explains why Google’s interpretation is not correct in this context. $\endgroup$
    – El-Guest
    Commented Sep 7, 2018 at 23:09
119
+100
$\begingroup$

A lateral thinking answer:

0! 0 0 0, because the binary equivalent of 8 is 1000 :)

$\endgroup$
4
  • 10
    $\begingroup$ I like this! very direct and minimal. $\endgroup$ Commented Sep 7, 2018 at 14:25
  • 2
    $\begingroup$ My favourite one! I did wonder if someone would go binary. $\endgroup$
    – m-smith
    Commented Sep 7, 2018 at 15:07
  • $\begingroup$ I was just checking existing answers to see if anyone else had thought of ! In the sense of negation, and binary. So "yes" :) $\endgroup$
    – Stilez
    Commented Sep 10, 2018 at 8:24
  • $\begingroup$ I have reached my daily voting limit (DVL), but Imma vote this when I can, get it to $99$, and then hope that another user actually puts another upvote :P $\endgroup$
    – Mr Pie
    Commented Oct 3, 2018 at 7:11
75
$\begingroup$

$0 + 0 + 0 + 0 ~~!\!=~ 8$

because

$ !\!= $ is an alternative way of writing $ \ne $.

$\endgroup$
2
  • 4
    $\begingroup$ This is the answer! $\endgroup$
    – user51438
    Commented Sep 8, 2018 at 2:20
  • 4
    $\begingroup$ @TheodoreWeld nope, this question is tagged mathematics, and you have to use a slash similar to Yout Ried instead of this $\endgroup$
    – phuclv
    Commented Sep 8, 2018 at 4:24
64
$\begingroup$

Lateral thinking!

$$0+0+\substack{0\\0}=0+0+8=8$$

$\endgroup$
2
  • 11
    $\begingroup$ First I thought "how does picking 0 out of 0 give you 8 combinations", then I got it. $\endgroup$ Commented Sep 7, 2018 at 12:01
  • 105
    $\begingroup$ Looks more like vertical thinking to me. $\endgroup$
    – Evargalo
    Commented Sep 7, 2018 at 12:02
39
$\begingroup$

let me try:

$0! \Vert 0 - 0!-0! =8$
$10-1-1=8$

$\Vert$ is a concatenation operation

$\endgroup$
8
  • 1
    $\begingroup$ good solution but in this case you cant use '[' or ']' $\endgroup$
    – Nobody
    Commented Sep 7, 2018 at 7:13
  • 3
    $\begingroup$ @casualcoder It was explicitly allowed. If this wasn't meant to be a valid solution, why even allow it, as 00 = 0+0 = 0? $\endgroup$ Commented Sep 7, 2018 at 7:51
  • 1
    $\begingroup$ I've never used $[\ldots ]$ as an operator before, let alone for what you use it as in this answer. I usually use it as a set notation; i.e., $[n]=\{1,2,\ldots n\}$ :P $\endgroup$
    – Mr Pie
    Commented Sep 7, 2018 at 11:53
  • 2
    $\begingroup$ I think "concatenation allowed" in these puzzles usually means that, for example, 2 8 7 can be 28 ÷ 7 = 4, but not (2+8)7 = 107 $\endgroup$ Commented Sep 7, 2018 at 14:22
  • 7
    $\begingroup$ @Chronocidal What you are saying is probably true about most of these puzzles. But in this particular puzzle where all the digits are 0, that interpretation does not make a lot of sense. To me this answer feels more legitimate than the accepted answer. That's because concatenation is explicitly allowed, but the !! is not explicitly allowed (though it may be implied). $\endgroup$
    – kasperd
    Commented Sep 8, 2018 at 12:20
33
$\begingroup$

It's different:

$\,++$
$0\;\;\;0$
$\,++$
$0\;\;\;0$
$\,++$

An ASCII art $8$ using only four $0$'s and $+$'s.

$\endgroup$
30
$\begingroup$

$((0!+0!)^{(0!+0!)})!!$

Evaluation:

$((0!+0!)^{(0!+0!)})!!$
$\rightarrow ((1+1)^{(1+1)})!!$
$\rightarrow (2^2)!!$
$\rightarrow 4!! = 8$

$\endgroup$
1
  • $\begingroup$ How did I not think of that?? DVL16 :\ $\endgroup$
    – Mr Pie
    Commented Oct 3, 2018 at 7:12
18
$\begingroup$

0 + 0 + 0 + 0 = !8

because

In C/C++, ! refers to the logical not operator, where all non-zero values become 0, and 0 becomes 1.

$\endgroup$
6
  • $\begingroup$ I think this should be "the binary not operator". $\endgroup$ Commented Sep 11, 2018 at 8:17
  • 3
    $\begingroup$ @RaimundKrämer ITYM unary not. C99 calls it the "logical negation operator" and files it in the chapter "Unary operators". $\endgroup$
    – Jens
    Commented Sep 11, 2018 at 15:56
  • $\begingroup$ But !8 can be a subfactorial of 8. $\endgroup$
    – rus9384
    Commented Sep 12, 2018 at 11:39
  • $\begingroup$ @Raimund Krämer, In programming, we have logical operators and bitwise operators. Logical operators (!, &&, || in C) operate on boolean values (true and false). Bitwise operators (~, &, |, ^ in C) operate on bits (0 and 1) of numbers. Calling either set binary operators would be confusing, as both set work on binary values. $\endgroup$
    – ikegami
    Commented Sep 13, 2018 at 11:12
  • $\begingroup$ @Raimund Krämer Also, "binary operator" can mean any operator on 2 values (as opposed to a unary operator such as ! or ~) $\endgroup$
    – l k
    Commented Sep 18, 2018 at 6:23
15
$\begingroup$

It's just a matter of perspective ...

0!/0 + 0!/0 = ∞

My reasoning....

0/0 is undefined so we have to first change the 0's into 1's with 0! (...and why did you write the infinity symbol sideways in your question?)

$\endgroup$
3
  • 1
    $\begingroup$ x/0 isn't infinite, though... $\endgroup$
    – Adam Smith
    Commented Sep 8, 2018 at 17:49
  • 1
    $\begingroup$ Lateral thinking was yesterday. Vertical thinking is the new kid in town! $\endgroup$
    – Jens
    Commented Sep 11, 2018 at 15:59
  • 1
    $\begingroup$ x/0 == +infinity, per ieee 754 $\endgroup$
    – j__m
    Commented Sep 15, 2018 at 12:40
11
$\begingroup$

$$[+!0]+[0]-!0-!0$$

Works in JavaScript. Hit F12 and type this into the console (This equation editor uses "−" instead of "-" so copy and paste doesn't quite work). Otherwise, it works in the same way as @malioboro and @Arnaldur's answers.

In fact, you can make any JavaScript application run just by using a combination of 6 characters, which is what inspired me to make this. I substituted +[] for 0 when asking JSF**k to do 10-2.

$\endgroup$
3
  • 3
    $\begingroup$ I like this abuse of javascript a lot. !0 for true, +!0 for 1, [1] for array containing 1, [1]+[0] for concatenate two arrays to get the string "10" ; subtract 1 from that twice to end up as 8. Love it. $\endgroup$ Commented Sep 8, 2018 at 4:10
  • 2
    $\begingroup$ but the question is tagged mathematics and not programming $\endgroup$
    – phuclv
    Commented Sep 8, 2018 at 4:21
  • 3
    $\begingroup$ Who says you can use square brackets.... $\endgroup$
    – user52269
    Commented Sep 8, 2018 at 6:57
11
$\begingroup$

$0 + 0 + 0 + 0 \equiv 8$

Adding the symbol $-$ over the equals sign makes it a congruence sign. Considering the congruence relation, we must be working mod N, where N divides 8.

$\endgroup$
8
$\begingroup$

$concat(0!,0) - 0! - 0! = 8$

becomes:

$concat(1,0) - 1 - 1 = 8$

and finally:

$10 - 2 = 8$

cool puzzle!

$\endgroup$
1
  • 2
    $\begingroup$ Great answer! But it has already been answered (check out @malioboro 's answer). Nonetheless, welcome to the Puzzling Stack Exchange (Puzzling.SE)! Since you are new to the Stack Exchange community, let alone this site, I strongly suggest that you visit the Help Center for more info; in particular, I suggest going here, then here for questions (not answers) :D $\endgroup$
    – Mr Pie
    Commented Sep 7, 2018 at 7:44
4
$\begingroup$

Question limits the symbols, not the operations. So with the symbol + can make the operator ++.

(++(++(++(++(++(++(++0000))))))) = 8

$\endgroup$
4
  • $\begingroup$ I think you'd need the prefix form if you actually wanted that to work. $\endgroup$ Commented Sep 7, 2018 at 23:48
  • 1
    $\begingroup$ Doh. Of course you can't increment a literal in the first place. $\endgroup$ Commented Sep 7, 2018 at 23:55
  • 1
    $\begingroup$ but that symbol doesn't exist in mathematics $\endgroup$
    – phuclv
    Commented Sep 8, 2018 at 4:20
  • 2
    $\begingroup$ You need to pass an l-value to the ++ and -- operators, and neither their result or a literal is one. $\endgroup$
    – Maya
    Commented Sep 8, 2018 at 14:35
3
$\begingroup$

Just put the minus symbol over the first zero to give it the look of a figure 8 and use plus to add the zeros.

$\endgroup$
7
  • $\begingroup$ Great answer, but unfortunately, this is a duplicate of @TheSimpliFire 's answer. $\endgroup$
    – Mr Pie
    Commented Sep 7, 2018 at 11:51
  • 2
    $\begingroup$ @user477343 No, not quite, since this answer puts a line through the 0 instead of putting two 0s on top of each other. In this answer, only one 0 becomes an 8. $\endgroup$ Commented Sep 7, 2018 at 12:02
  • $\begingroup$ @FabianRöling As I read it, it uses the minus symbol to be put over the first zero and make it look like an $8$. In my imagination, I assumed the zero is the bottom circle of $8$ since there is something over it, of which is another circle $\large\circ$. I did not fully understand what this answer was talking about in saying to use a subtraction symbol, but just assumed it was just like TheSimpliFire's answer due to their similarity; and since that is a great answer, I thought this was great, too. If you understand this answer, may you please explain to me in other words if you can? :\ $\endgroup$
    – Mr Pie
    Commented Sep 7, 2018 at 12:09
  • 3
    $\begingroup$ @user477343 It uses the horizontal line of the minus sign to cut through the middle of the $0$. It is "over" the zero in the sense of overwritten. $\endgroup$ Commented Sep 7, 2018 at 12:55
  • 1
    $\begingroup$ Yeah. 'over' in the sense of "in front of" on a dimension between you and your monitor. $\endgroup$
    – Sentinel
    Commented Sep 7, 2018 at 14:44
3
$\begingroup$

Here is an answer that doesn't use the semi-factorial or any concatenation.

$$0 + 0 - 0! / 0 = (-8)!$$

The left side is $-1/0$ and the right side is $-\infty$.

Plugging the expression into Wolfram.

$\endgroup$
1
  • 4
    $\begingroup$ Division by zero is undefined (the limit of 0!/x as x goes to 0 is plus or minus infinity) and so are negative integer factorials (they are not equivalent to negative infinity). Even if they both evaluated to +∞, you can prove nonsense assuming you can equate infinities and treat like a real number. E.g., |1/0| = +∞, adding 1 to positive infinity is still positive infinity, hence |1/0| + 1 = +∞, hence |1/0| = |1/0| +1 by transitivity of equality. Subtract |1/0| from both sides and prove 0 = 1. $\endgroup$
    – dr jimbob
    Commented Sep 8, 2018 at 18:11
3
$\begingroup$

concatenate(0!, 0) - concatenate(0! + 0!) = 8.

Note that 0! = 1

(0!, 0) = 10, and (0! + 0!) = 2, so 10 - 2 = 8

$\endgroup$
3
  • $\begingroup$ Unfortunately concatenate is not a valid operation. $\endgroup$
    – boboquack
    Commented Sep 11, 2018 at 1:37
  • $\begingroup$ Congrats, concatenation is allowed now! Good answer, but people beat you to it. Welcome to Puzzling.SE! Here's a bonus puzzle: What's the word? Hilarious - extremely amusing $\endgroup$
    – Alto
    Commented Sep 11, 2018 at 1:47
  • $\begingroup$ Also, concatenation is combination. Basically, (2, 4) = 24, you get it. $\endgroup$
    – Alto
    Commented Sep 11, 2018 at 1:48
3
$\begingroup$

This could work too:

(0!+0+0)/0 = ∞

Explanation

(0!+0+0)/0 = 1/0 which is infinity (8 but put horizontally)

$\endgroup$
2
  • $\begingroup$ That is not infinity — it is undefined :\ $\endgroup$
    – Mr Pie
    Commented Oct 3, 2018 at 11:33
  • $\begingroup$ @MrPie - We can get into calculus if you want. It can still be considered infinity; though can also be considered as though it is approaching any number so we can even go directly to 8! IEEE 754 states that division by 0 leads to an infinity, so there's that, too! $\endgroup$ Commented Jul 25, 2019 at 15:19
3
$\begingroup$

Add a - above the equals to get $0000 \equiv 8$, which is true assuming we are working in the ring $\mathbb{Z}/\mathbb{2Z}$. (Note I'm trying to avoid writing $[0] = [8]$...)

$\endgroup$
0
$\begingroup$

$00^{00} = 0^0$ which is indeterminate. In some sense, an indeterminate form can be equal to any value, since in Calculus, a function that approaches "$0^0$" can approach any real value, including $8$. So in that sense, $0^0 = 8$.

If you don't like concatenating two zeroes as "$00$", then $0^0 + 0 + 0$ also works.

$\endgroup$
4
  • 8
    $\begingroup$ There are no widely accepted definitions under which your equation is considered to be true. $\endgroup$ Commented Sep 7, 2018 at 17:34
  • $\begingroup$ @TannerSwett Didn't think it was that unreasonable. My thinking is you can construct a function $f(x)^{g(x)}$ where $f$ and $g$ both limit to zero at some point $c$ such that $f(x)^{g(x)}$ limits to any real number at $c$, including $8$. Admittedly, writing $0^0 = 8$ is basically mathematically false. It is indeterminate for the reason I stated above. But this is Puzzling SE, not Mathematics SE, so I figured it was ok to think outside the box and not be formal with math. $\endgroup$
    – RothX
    Commented Sep 10, 2018 at 13:23
  • $\begingroup$ Yeah, I dunno if I'd call it "that unreasonable". But if I saw a student say that the equation $0^0 = 8$ is true, I'd think that they probably misunderstand what an indeterminate form means. If I saw a math professor say the same thing, I'd ask them if they could please be a little more rigorous. $\endgroup$ Commented Sep 10, 2018 at 13:59
  • $\begingroup$ @TannerSwett Yeah, I completely agree. I'd never write $0^0 = 8$ in a mathematical setting, but since this is a puzzle, not a math problem, I thought maybe I could stretch a bit. $\endgroup$
    – RothX
    Commented Sep 11, 2018 at 1:58
0
$\begingroup$

$ ((0! + 0!)\$)*(0! + 0!) = 2^2*2 = 8 $.

Further explanation:

The $\$$ operation denotes the superfactorial defined as : $ n\$ = (n!) \uparrow \uparrow (n!)$.

$\endgroup$
1
  • 3
    $\begingroup$ Good idea, but make sure to read the question fully. It gives you a list of what operations can be used and $ is not one of them. $\endgroup$
    – Sensoray
    Commented Sep 7, 2018 at 15:26
0
$\begingroup$

If you turn the problem around

enter image description here

$\endgroup$
2
  • $\begingroup$ Similar to @rrauenza's answer $\endgroup$ Commented Sep 8, 2018 at 8:11
  • $\begingroup$ Yes. A different way to express the same idea. $\endgroup$
    – Florian F
    Commented Sep 8, 2018 at 9:13
0
$\begingroup$

Similar to @Vaelus

$0+0+0+0 \leq 8$

Explanation

You can get the $\leq$ by adding a $-$ inclined on top of the $=$

$\endgroup$
3
  • $\begingroup$ The goal is to strictly make $0\,0\,0\,0=8$ and not to "make the statement true" (therefore allowing this answer to be acceptable) :\ $\endgroup$
    – Mr Pie
    Commented Oct 3, 2018 at 11:35
  • $\begingroup$ When you say "the goal is to make [math expression]", then you're under the influence of the interpretation of that mathematical expression. IMO, "make the statement true" is the one and only interpretation to be taken, while you could argue more strict rules about not manipulating already existing symbols. $\endgroup$
    – villasv
    Commented Oct 3, 2018 at 13:18
  • $\begingroup$ I see, you have a point. I should've said that my comment is solely based on how I interpreted the question, possibly explaining why your answer was sadly downvoted. I am positive that there exists another answer that manipulates the equation in a similar way that you have. Sorry if I sounded mean. You can get a $(+1)$ but in at least $2$ hours, once my daily voting limit (DVL) is over :) $\endgroup$
    – Mr Pie
    Commented Oct 3, 2018 at 21:00
0
$\begingroup$

As per the list of allowed symbols we are clearly allowed to use "$,$" and "$.$"
This is doubly evident as otherwise how would we use the $\mathbb{concatenation}$ function without a comma to separate the arguments?

So the solution is:

$0! - \mathbb{concatenation}(., 0 + 0! + 0!!) = .8$
$1 - \mathbb{concatenation}(., 0 + 1 + 1) = .8$
$1 - \mathbb{concatenation}(., 2) = .8$
$1 - .2 = .8$

$\endgroup$
2
  • $\begingroup$ You may simplify 0!! as 0!. $\endgroup$
    – Cœur
    Commented Sep 11, 2018 at 15:28
  • $\begingroup$ I felt like $0+0!+0!!$ looked more elegant/purposeful as if it was part of a sequence like $a(n, m) = a(n-1,m)!; a(0,m)=m$ $\endgroup$
    – SamYonnou
    Commented Sep 11, 2018 at 16:58
-1
$\begingroup$

If the order can be changed:

(0 0! 8)0 = 0!

(0 0! 8) is a permutation.

$\endgroup$
2
  • 2
    $\begingroup$ $0 * 0 * 0 * 8 = 0$ would be much simpler, though no more a solution to this problem than yours. I don't think it's reasonable to think reordering is allowed. $\endgroup$
    – Rubio
    Commented Apr 10, 2019 at 0:09
  • 1
    $\begingroup$ nice try, but seems that this is not the kind of answer the OP was looking for. beware of downvotes, yet keep up your hard work and happy puzzling :) $\endgroup$ Commented Apr 10, 2019 at 1:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.