Problem 53940. Easy Sequences 66: Fractional Part of Sum of Consecutive Powers over a Prime
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 commentsProblem Recent Solvers4
Suggested Problems
-
Sort a list of complex numbers based on far they are from the origin.
5690 Solvers
-
Decimation - Optimized for speed
182 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
564 Solvers
-
449 Solvers
-
2191 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!