Given three postive integers, x, e and n, create the function
, defined as follows:
Where
is the nth prime and the symbol
is the fractional part function of a positive real number, defined as follows:
If
then
, where
, is the 'floor' of r.
For example for
,
and
, we have:
Therefore, since
:
Please round-off the output to four decimal places, so in this case:
.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers6
Suggested Problems
-
4577 Solvers
-
Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
253 Solvers
-
151 Solvers
-
Matlab Basics II - Count rows in a matrix
412 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2241 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!