Puzzling Stack Exchange is a question and answer site for those who create, solve, and study puzzles. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can you use the digits 2 0 1 and 7 only once to create the number 88 ?

share|improve this question
    
What are the allowed operations? Just +, -, / and * or can we use powers, factorials, etc? – hexomino 20 hours ago
    
I got 42 with 7! mod 102. :S – darkdemise 20 hours ago
    
@darkdemise if all you want it to get close, just do 7X12 or 170 / 2. no need to work so hard XD – stack reader 20 hours ago
2  
Just out of curiosity, what's so special about 88? – polfosol 14 hours ago
    
Are other digits allowed? – Pharap 8 hours ago
up vote 37 down vote accepted

What about this

$\left(\frac{0!}{.\overline1}\right)^2 + 7 = 88$

where

$.\overline1 = 0.1111\ldots$

share|improve this answer
    
This is very nice! – Jeff Zeitlin 19 hours ago

For that matter, in base 86: 12 + 0*7

share|improve this answer
1  
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review – rand al'thor 17 hours ago
9  
This does answer the question. In base 86 the numerals 12 = 88 in base 10. Adding the 0*7 in just a cheeky way of disposing of two useless numbers. How do I create 88 from 1, 2, 0 and 7? Change the base! – EvSunWoodard 14 hours ago
3  
In base 86, the number OP asked for doesn't exist. So no, it doesn't answer the question. – Josh Part 13 hours ago
2  
@Josh Sure it does. 88 base 10 = 12 base 86, which Bob used. Or, the other way around 88 base 86 = 696 base 10. – Graipher 12 hours ago

If floor were allowed, then this works:

$\left\lfloor\sqrt{10!!}\right\rfloor + 27 $

because

$10!!$ is $10\cdot 8\cdot 6\cdot 4\cdot 2 = 3840 $
$\sqrt{3840} = 61.9677335393\cdots.$

share|improve this answer
1  
Thanks for fixing all the formatting! – Matt 19 hours ago

Because modern math is done with computers, here's some Python:

>>> int(str(0 + 1 + 7) * 2)
88
share|improve this answer
    
I disagree that modern maths is done with computers. See the IMO and other related mathematics competitions. – boboquack 10 hours ago

We can do it without the $0$...

$S=\{1,2,7\}$

$(\sum{S}-|S|)\times\prod{S}-\sum{S}$

(using the sum, $\sum$, cardinality, $||$, and product,$\prod$, of the set $S$.)

Evaluated:
$=(10-3)\times 14-10$
$=7\times 14-10$
$=98-10$
$=88$

So, obviously we could just add zero afterwards.

Mind you, I suppose that we could also do it with just one of the numbers in that case too.

$S = \{x\}$

$(|S|+|S|+|S|+|S|+|S|+|S|+|S|+|S|+|S|+|S|+|S|)\times(|S|+|S|)\times(|S|+|S|)\times(|S|+|S|)$
$=(1+1+1+1+1+1+1+1+1+1+1)\times(1+1)\times(1+1)\times(1+1)$
$=11\times2 \times2 \times2$
$=88$

...so
For $x = $...$7$, $2$, or $1$ just multiply the rest together and add them on.
For $x=0$ one can add $(7\times 2)\pmod{1}=0$, or $(7+1)\pmod{2}=0$.


The only question is: Does doing what I have done here count as using the given numbers more than once?


Here is an alternative, sneaky way...

Subtract the one from the seven, turn the resulting six upside-down, append the zero, then subtract the two.

$7-1=6$
$\text{turn}(6)=9$
$\text{append}(9,0)=90$
$90-2=88$

share|improve this answer
    
Just add a $+0$ onto the end. – Deusovi 18 hours ago
3  
I'm a big fan of the sneaky way. – EvSunWoodard 14 hours ago
    
Why not x = 2 * 0 * 7 + 1, and then x + x + x + ... + x = 88? Seems like once you're allowed to define variables, the challenge is lost. – Dietrich Epp 2 hours ago
    
if you are allowed to use sets you don't need any digits. – Jasen 1 hour ago
    
define sneakyfunc(2,0,1,7) = 88. – Neil W 1 hour ago

If ceiling or nearest integer function is allowed,

$\lceil{\tan^{-1}(27+0!)}\rceil = 88^{\circ}$

share|improve this answer

If we use base 36

We now have access to the digits 2, 0, 1, A, N, D, 7. So:
$= (N \times D) - 7 + \left(\frac{A}{2}\right) - 1 + 0$
$= 8B - 7 + 5 - 1 + 0$
$= 8B - 3$
$= 88$
Using base 10 math gives us 2, 0, 1, 10, 13, 23, 7
$= (23 \times 13) - 7 + \left(\frac{10}{2}\right) - 1 + 0$
$= 299 - 7 + 5 - 1 + 0$
$= 299 - 3$
$= 296$
296 is 88 in base 36

share|improve this answer
2  
But that's not what the question is asking for. – rand al'thor 17 hours ago
1  
The question says using those four digits once only. Your answer is the equivalent of saying "well, if I also use these other digits, I can get the answer!" which is completely besides the point. – Nij 12 hours ago

As a perl one-liner you could write:

perl -le 'for ($_=-1-2,$i = 0; $i<7; $i++) {$_+= $i*$i }; print'

or without a zero:

perl -le 'print ((7+1)x2)'

or without a zero OR a two in the bash shell:

x=$((7+1)) && echo $x$x

or without a zero, one, or two in bash:

false || x=$((7+$?)) && echo $x$x

or without any numbers at all:

false || x=$(($?+$?+$?+$?+$?+$?+$?+$?)) && echo $x$x

share|improve this answer
1  
The puzzle is tagged [mathematics], not [programming]. – Glorfindel 13 hours ago
2  
@Glorfindel the puzzle is also tagged [calculation-puzzle]. my answer involves both mathematics and calculations. – gogators 13 hours ago
1  
You could build any number you want. this way. No fair! :D – DarioOO 6 hours ago

Here is my first answer after about 5 minutes of brute-force checks!

$\lceil\log{\sqrt{102!}}\rceil+7=88$

where log means logarithm in base 10.

By the way, as a wild guess, I think that 88 is very likely to be the OP's birth year.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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