Problem 2057. persistant sum
There will be 9 tests for this problem.
In each test you will be provided with 2 integers n=[n1,n2].
Your code should return n1 * (remainder(n1/n2) + 2) + (remainder(n1/n2) + 1)
Solution Stats
Problem Comments
-
2 Comments
Dyuman Joshi
on 11 Dec 2020
The problem description is broken(?) and you have mentioned the code in the test suite (you might want to remove that)
goc3
on 14 Dec 2020
The test suite has had the "solution" code removed. The description was also cleaned up. (If it's not loading, simply reload the page.) I'm not sure how much these fixes help, though...
Solution Comments
Show commentsProblem Recent Solvers113
Suggested Problems
-
124 Solvers
-
Find the Nth Root of a Given Number
354 Solvers
-
Find out value of sine given by degree.
352 Solvers
-
Back to Basics - Find no. of elements in a matrix?
324 Solvers
-
Convert from Fahrenheit to Celsius
27353 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!