All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Closest to e (Posted on 2012-04-18) Difficulty: 3 of 5
This is in continuation of Closest to pi.

(A) As we are aware, the approximate value of e with some decimals is 2.7182818284590...

Write an expression using all digits (0-9) once each, to achieve the closest value to e. The digits 1, 2, 3, 4, 5, 6, 7, 8, 9, and 0 must be arranged strictly in this order. You can only use the five symbols: parentheses , addition, subtraction, multiplication and division symbols that is, (), +, -, *, /

Concatenating two or more digits is allowed. Each symbol can occur at most once in the given expression. Only standard order of operations is followed that is, multiplication does not take precedence over division, addition does not take precedence over multiplication, and so on.

For example : (123+456)/7890 is a valid expression. However, expressions like 1+234/567 + 8/9 -0 or, 1+3*2456/78-90 are not allowed.

(B) Write an expression closest to e, if all the other conditions in (A) remain unaltered, but the restriction of each symbol occurring at most one is withdrawn. For example, expressions like 1+234/567 + 8/9 -0 is allowed. However, expressions like: 1+3*2456/78-90 are not allowed.

(C) What are the respective answers to (A) and (B) if a sixth symbol, that is, the decimal point is allowed?

No Solution Yet Submitted by K Sengupta    
No Rating

Previous (in Word Problems) : Twenty what?!
    Next (in General) : Why did she do it?
Comments: ( Back to comment list | You must be logged in to post comments.)
Charlie's note | Comment 5 of 6 |
I noticed Charlie's acknowledgement re my advocacy of the QB64's compiler.  It is great that an interpreter program is not required so that the machine code is immediately addressed after compilation.

Extensions within QB64 also extends one's range.  That said I've got something running when the last variable assignment has not been tripped for the first time after some 8 hours [14 FOR  ...  NEXT loops].


Edited on April 20, 2012, 3:48 am
  Posted by brianjn on 2012-04-20 03:18:51

Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (8)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2014 by Animus Pactum Consulting. All rights reserved. Privacy Information