Can you use the digits 2 0 1 and 7 only once to create the number 88 ?
|
|
What about this
where
|
|||||
|
|
For that matter, in base 86: 12 + 0*7 |
|||||||||||||||||
|
|
If floor were allowed, then this works:
because
|
|||||
|
|
Because modern math is done with computers, here's some Python:
|
|||||
|
|
We can do it without the $0$...
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.
...so 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...
|
|||||||||||||||||||||
|
|
If ceiling or nearest integer function is allowed,
|
|||
|
|
|
If we use base 36
|
|||||||||
|
|
As a perl one-liner you could write:
or without a zero:
or without a zero OR a two in the bash shell:
or without a zero, one, or two in bash:
or without any numbers at all:
|
|||||||||||||
|
|
Here is my first answer after about 5 minutes of brute-force checks!
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. |
|||
|
|