Problem 58274. Easy Sequences 116: Summation involving nthroot, floor, and ceiling functions

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 =

Solution Stats

100.0% Correct | 0.0% Incorrect
Last Solution submitted on May 16, 2023

Solution Comments

Show comments

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!