Including a value where x<=15 and the formula is true (like the x=8; n=2 example in your problem description) will make this solution wrong.
4107 Solvers
Find the position of first minimum value in an integer array with numbers
116 Solvers
276 Solvers
Finding perimeter of a rectangle
278 Solvers
134 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!