Given a postive integers x and n, we are asked to evaluate the following summation:
where: the symbol "" and "" are the floor and ceil functions, respectively.
For example, if and , we have:
>> S = @(x,n) sum(arrayfun(@(i) ceil(nthroot(i-1,n))+floor(nthroot(i+1,n)),1:x));
>> s = S(50,3)
>> s =
279

Solution Stats

3 Solutions

2 Solvers

Last Solution submitted on May 16, 2023

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers2

Suggested Problems

More from this Author116

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!