Find the right number make the equation - MATLAB Cody - MATLAB Central

Problem 44788. Find the right number make the equation

Difficulty:Rate

Given positive integer number n, find the right positive integer number a, b , so that

(1) sqrt(a + n * b) is a positive integer number

(2) sqrt(hypot(a,b)) is a positive integer number

Note: the output must be char array!

Have fun!

Solution Stats

14.67% Correct | 85.33% Incorrect
Last Solution submitted on Jan 16, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers10

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page