Cody

# Problem 2057. persistant sum

Solution 1597459

Submitted on 1 Aug 2018
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
n=[1259,1]; m=mod(n(1),n(2))+1; s=n(1)*(m+1)+m; assert(isequal(samasama(n),s))

Undefined function or variable 'n2'. Error in samasama (line 2) y = n(1)*(rem(n2,n3)+rem(n2/(n3+1))) Error in Test1 (line 4) assert(isequal(samasama(n),s))

2   Fail
n=[839,2]; m=mod(n(1),n(2))+1; s=n(1)*(m+1)+m; assert(isequal(samasama(n),s))

Undefined function or variable 'n2'. Error in samasama (line 2) y = n(1)*(rem(n2,n3)+rem(n2/(n3+1))) Error in Test2 (line 4) assert(isequal(samasama(n),s))

3   Fail
n=[629,3]; m=mod(n(1),n(2))+1; s=n(1)*(m+1)+m; assert(isequal(samasama(n),s))

Undefined function or variable 'n2'. Error in samasama (line 2) y = n(1)*(rem(n2,n3)+rem(n2/(n3+1))) Error in Test3 (line 4) assert(isequal(samasama(n),s))

4   Fail
n=[503,4]; m=mod(n(1),n(2))+1; s=n(1)*(m+1)+m; assert(isequal(samasama(n),s))

Undefined function or variable 'n2'. Error in samasama (line 2) y = n(1)*(rem(n2,n3)+rem(n2/(n3+1))) Error in Test4 (line 4) assert(isequal(samasama(n),s))

5   Fail
n=[419,5]; m=mod(n(1),n(2))+1; s=n(1)*(m+1)+m; assert(isequal(samasama(n),s))

Undefined function or variable 'n2'. Error in samasama (line 2) y = n(1)*(rem(n2,n3)+rem(n2/(n3+1))) Error in Test5 (line 4) assert(isequal(samasama(n),s))

6   Fail
n=[359,6]; m=mod(n(1),n(2))+1; s=n(1)*(m+1)+m; assert(isequal(samasama(n),s))

Undefined function or variable 'n2'. Error in samasama (line 2) y = n(1)*(rem(n2,n3)+rem(n2/(n3+1))) Error in Test6 (line 4) assert(isequal(samasama(n),s))

7   Fail
n=[314,7]; m=mod(n(1),n(2))+1; s=n(1)*(m+1)+m; assert(isequal(samasama(n),s))

Undefined function or variable 'n2'. Error in samasama (line 2) y = n(1)*(rem(n2,n3)+rem(n2/(n3+1))) Error in Test7 (line 4) assert(isequal(samasama(n),s))

8   Fail
n=[279,8]; m=mod(n(1),n(2))+1; s=n(1)*(m+1)+m; assert(isequal(samasama(n),s))

Undefined function or variable 'n2'. Error in samasama (line 2) y = n(1)*(rem(n2,n3)+rem(n2/(n3+1))) Error in Test8 (line 4) assert(isequal(samasama(n),s))

9   Fail
n=[251,9]; m=mod(n(1),n(2))+1; s=n(1)*(m+1)+m; assert(isequal(samasama(n),s))

Undefined function or variable 'n2'. Error in samasama (line 2) y = n(1)*(rem(n2,n3)+rem(n2/(n3+1))) Error in Test9 (line 4) assert(isequal(samasama(n),s))