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

85 Solutions

13 Solvers

Last Solution submitted on Dec 20, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers13

Suggested Problems

More from this Author17

Community Treasure Hunt

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

Start Hunting!