The HHC2024 RPN challenge - according to AI
|
09-26-2024, 10:08 PM
Post: #1
|
|||
|
|||
The HHC2024 RPN challenge - according to AI
(I've started a new thread so you can safely ignore!)
I asked MS copilot to have a go at the RPN challenge by asking it to "write a routine that produces the number 24 just using the number 7 three times with no other digits used". The best that I can say is that it summarised the question reasonably well. :-( ----- Sure! Here’s a simple mathematical routine that uses the number 7 exactly three times to produce the number 24: $$ 24 = \left(\frac{7\times 7}{7}\right) + \left(\frac{7}{7}\right) + \left(\frac{7}{7}\right) $$ In this routine:
|
|||
09-26-2024, 10:33 PM
Post: #2
|
|||
|
|||
RE: The HHC2024 RPN challenge - according to AI
Hello!
I tried it with Chat GPT which got it totally wrong. Usually it does it a lot better, but this time the result is disappointing. After half a dozen attempts, our final conversation was this: Me: "Maybe we should better start over! please write a short program or command sequence for an RPN calculator which produces the numeric result 24. For the calculation, the digit 7 must be used exactly 3 times, no other digits are allowed." ChatGPT replied: Thank you for your patience! Now, let's get it right. To solve this problem where only the digit 7 can be used exactly 3 times, and we need to produce 24, here's a valid approach: Correct Solution: 24=(7×7)−7 RPN Key Sequence: 7 Enter 7 × 7 - Explanation of the Sequence: 7 Enter 7 × computes 7×7=49. 7 - subtracts 7 from 49, resulting in 49−7=42. Result: 24. This uses the digit 7 exactly three times and gives the correct result 24. Obviously they do not feed Chat GPT enough electrons to keep it's neurons active... Regards Max |
|||
09-26-2024, 10:52 PM
Post: #3
|
|||
|
|||
RE: The HHC2024 RPN challenge - according to AI
(09-26-2024 10:33 PM)Maximilian Hohmann Wrote: ... Yes, apparently we need to build more AI data centers to get better results. Of course those data centers will need electrical power. Lots of electrical power. Vast amounts of electrical power. OpenAI asked US to approve energy-guzzling 5GW data centers, report says But that is OK. When asked, AI will provide a recommended solution to get that electrical power... AI comes up with new way of generating the electrical power it needs. |
|||
09-27-2024, 12:26 PM
Post: #4
|
|||
|
|||
RE: The HHC2024 RPN challenge - according to AI
(09-26-2024 10:33 PM)Maximilian Hohmann Wrote:Quote:Correct Solution: So when asked AI (aka "The Matrix"/"Skynet") answered with 42 - the answer to "life, the universe, and everything"! Good job! Now what was the question? We need to build "Deep Thought" with HP calculators Where's Keanu Reeves ("Neo") when you need him? "What do you need?" "Calculators. Lots of calculators." A1 PS: And to think that a humble HP-29C program can solve "with three 7's produce 24" in 9 steps. https://www.hpmuseum.org/forum/thread-22...#pid192193 HP-15C (2234A02xxx), HP-16C (2403A02xxx), HP-15C CE (9CJ323-03xxx), HP-20S (2844A16xxx), HP-12C+ (9CJ251) |
|||
10-03-2024, 11:45 AM
Post: #5
|
|||
|
|||
RE: The HHC2024 RPN challenge - according to AI
Hello,
I just tried to get a solution for this challenge from "Claude", another AI program on the internet: Me: "Please write a short program for an RPN calculator, e.g. an HP-15C, that produces the number 24 as result. As constraint, the only digit that may be used is 7 which must be used exactly three times." Claude's reply: I'd be happy to write a short program for an RPN (Reverse Polish Notation) calculator that produces 24 as a result using only the digit 7 three times. This is an interesting challenge that requires some creative mathematical thinking. Here's a program that achieves this goal: 7 7 7 * + √ Let's break down how this works: 7: Push 7 onto the stack 7: Push another 7 onto the stack 7: Push a third 7 onto the stack *: Multiply the top two values (7 * 7 = 49) +: Add the result to the remaining 7 (49 + 7 = 56) √: Take the square root of 56 The square root of 56 is approximately 7.483314774. On most RPN calculators, this would be displayed as 7.483314774, which rounds to 7.4833 if we're limited to 4 decimal places. To get exactly 24, we'd need to square this result: x^2 This final step gives us 56, which divided by 2 (using the ÷ key and 2) would give us 28. However, if we're strictly limited to using only the digit 7 three times and no other digits, the program I provided is the closest approximation to 24 that can be achieved. The result (approximately 7.483314774) multiplied by 3.207534247 would give exactly 24, but we can't input this multiplier using only 7s. Again, not the desired result, but at least Claude did not openly lie to me like Chat GPT who tried to sell me 42 for 24 :-) Regards Max NB: Let's see what AI will be able to do about the programming challenge of next year... |
|||
10-09-2024, 04:05 AM
Post: #6
|
|||
|
|||
RE: The HHC2024 RPN challenge - according to AI
HP50g cheating version of an answer.
Initial Stack. 7. 7. 7. << LNP1 EXP UNROT + SQRT FLOOR * >> |
|||
10-09-2024, 05:55 AM
(This post was last modified: 10-09-2024 05:56 AM by badaze.)
Post: #7
|
|||
|
|||
RE: The HHC2024 RPN challenge - according to AI
(10-03-2024 11:45 AM)Maximilian Hohmann Wrote: Hello, It’s not a lie. It’s dyslexia! My site http://www.emmella.fr |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)