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...