2011-09-15

Three ones to arithmetically get all digits


With three ones, calculate all digits (natural numbers from 0 to 9), using simple arithmetic operations.
Here is a solution:

  • 0 = (1-1)/1
  • 1 = 1+1-1
  • 2 = 1+(1/1)
  • 3 = 1+1+1
  • 4 = (1+1)^/1
  • 5 = 1 + (1+1)^2
  • 6 = (1+1+1)!
  • 7 = ( (1+1)^ )^ - 1
  • 8 = (1+1+1)^
  • 9 = ((1+1)^)^ + 1

No comments:

Post a Comment