persistant sum - MATLAB Cody - MATLAB Central

Problem 2057. persistant sum

  • Created by Ted
Difficulty:Rate
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

57.34% Correct | 42.66% Incorrect
Last Solution submitted on Nov 18, 2024

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers112

Suggested Problems

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!