Post Reply 
Challenge: Generate 24 in the X register / display
09-06-2020, 09:58 PM (This post was last modified: 09-07-2020 12:41 AM by Gene.)
Post: #1
Challenge: Generate 24 in the X register / display
Challenge: Using a single digit repeated 3 and only 3 times, produce the number 24 in the X register.

Details - read them carefully... not trying to be picky, but to lay things out.

You cannot assume any default state of the calculator or the stack. You may not reset the calculator either. :-) Open to any ** HP ** RPN model or RPL model or the 71B with no extensions / plug ins added. No alpha functions allowed either. Stay numeric.

Please STATE which model your solution is for. This should provide a number of possible solutions, so just because someone posts a 2 step solution, please try it yourself.

Note: Solutions are sought for the numbers 0 – 9. Can you use 0 up to three times and generate 24 in the display? Can you use 1 up to three times and generate 24 in the display? Etc.

Embargo on solutions posted until Monday evening 5pm Central Time USA – roughly 24 hours from this post.


Example: A solution for the number 8 (most obviously) could be five steps: 8 ENTER ENTER + + which leaves 24 in the X register. Another solution would be six steps: 8 ENTER 8 + 8 + but that is longer.


Suggested layout of the solutions:

Solution for up to three 1’s. Model HP-25:

1
ENTER

Etc.

Remember to have fun.
Gene
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Challenge: Generate 24 in the X register / display - Gene - 09-06-2020 09:58 PM



User(s) browsing this thread: 1 Guest(s)