Solution 2072884

Submitted on 28 Dec 2019 by Carlos Andreu Vilarroig
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
n = randi(150,5,1); for i=1:length(n) idx = (1:n(i))'; suma = cumsum((0.5*ones(n(i),1)).^idx); assert(isequal(mi_funcion(n(i)),suma)) end


Suggested Problems

More from this Author1