I think the inequalities at the top of the problem must be backwards. In the example, c = 2*a, so c > a.
Hi William, Your right. I'd already changed. This should not affect the solution, though.
Many of your "Easy" sequence problems have been challenging and fun. But here I am confused. I get the correct solutions for Tests 1 through 3. For Test 4 (and higher) I have problems. My result for Test 4 is p = 209737287485879. When I try to calculate a, b and c from r and the given value of p_correct (using Python3 and math.isqrt to handle large integers) I fail to find integer values.
Have I missed some important point here?
The p_correct values contain only the last 12 digits.
It seems I stopped reading (or absorbing what I read) before the last line of the problem description. Thanks to Tim for the clarification.
Sorry, I haven't look at the comments lately. I thought no one's gonna answer this one. Thanks Tim, for the clarification...
Hi William, the output should be the perimeter, not the triangle sides…
Word Counting and Indexing
Find the jerk
Matrix indexing with two vectors of indices
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
Combine Cards to make 21
Easy Sequences 3: Prime 44-number Squares
Easy Sequences 46: Semi-prime Leap Year Pairs
Easy Sequences 16: Volume of Embedded Octahedron
Easy Sequences 41: Boxes with Integer Edges
Easy Sequences 27: Product of Radicals of Integers
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office