Brain Teaser #5

  • Thread starter kauai_diver
  • Start date
  • #1
kauai_diver
I guess I dont have access to the brain teaser forum. This one kinda confused me:

Using “Only Four” ZEROS (0) and any Mathematical Operations/Symbols, to obtain the number 24.

Answer is (0! + 0! + 0! + 0!)! = 24


I know im a bit rusty with hex/binary arithmatic but the answer i get with (0! + 0! + 0! + 0!)! is 3 assuming 8 bits:

0! = 0xFF and assuming no carry over:

0xFF + 0xFF = 0xFE

so (0xFF + 0xFF + 0xFF + 0xFF) = 0xFC

!0xFC = 3 Right? Where did I go wrong?
 
Last edited by a moderator:

Answers and Replies

  • #2
drag
Science Advisor
1,062
0
Yeah... I was wondering about the same thing.
0! is a factorial, just like n! for example with n
being any natural number. However 0! = 1.

Live long and prosper.
 
  • #3
kauai_diver
LOL you beat me to it, just got schooled from my wife of all people!

She said !0 would be 0xFF, but 0! = 1.

Factorial notation comes AFTER the value.

and 4! = 24.
 

Related Threads on Brain Teaser #5

  • Last Post
Replies
17
Views
20K
  • Last Post
Replies
3
Views
4K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
1
Views
6K
  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
5
Views
8K
  • Last Post
Replies
6
Views
2K
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
15
Views
5K
  • Last Post
Replies
11
Views
3K
Top