From e6b47202299d4b82b954e1f59fd79eebaf5721a0 Mon Sep 17 00:00:00 2001 From: robbie-hatley Date: Mon, 29 Jan 2024 19:02:39 -0800 Subject: Fixed comment error in 254-1. --- challenge-254/robbie-hatley/perl/ch-1.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenge-254/robbie-hatley/perl/ch-1.pl b/challenge-254/robbie-hatley/perl/ch-1.pl index a12244626d..e3165dde06 100755 --- a/challenge-254/robbie-hatley/perl/ch-1.pl +++ b/challenge-254/robbie-hatley/perl/ch-1.pl @@ -36,8 +36,8 @@ Output: false -------------------------------------------------------------------------------------------------------------- PROBLEM NOTES: -First of all, I had to think hard whether "Three Power" means "$x**3" or "3**$x". But the latter would be -"3 to the $x power", whereas the former is "$x to the 3 power", so I think "Three Power" means "3**$x". +First of all, I had to think hard whether "Three Power" means "x^3" or "3^x". But the latter would be +"3 to the x power", whereas the former is "x to the 3 power", so I think "Three Power" means "x^3". This is also corroborated by Example #2, which states that 0 is a "Three Power" because "0 = 0^3", not "0 = 3^0" which is false (3^0 = 1). So this problem boils down to "Given an integer x, does there exist an integer r such that r^3 = x?" -- cgit