Cody

# Problem 44788. Find the right number make the equation

Solution 2624059

Submitted on 28 Jun 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail

Error in solution: Line: 2 Column: 3 Assigning the function output to this expression is not supported.

2   Fail
for n = 1 : 3 [a, b] = find_right_number_for_F(n); assert(ischar(a)); assert(ischar(b)); a = java.math.BigInteger(a); b = java.math.BigInteger(b); c = a.add(b.multiply(java.math.BigInteger(int2str(n)))); [~, r] = exact_sqrt(char(c)); assert(isequal(r,'0')); d = a.pow(2).add(b.pow(2)); [e,r1] = exact_sqrt(char(d)); assert(isequal(r1,'0')); [~,r2] = exact_sqrt(char(e)); assert(isequal(r2,'0')); end

Error in solution: Line: 2 Column: 3 Assigning the function output to this expression is not supported.

### Community Treasure Hunt

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

Start Hunting!