Problem 52769. Easy Sequences 22: Sum of Proper Fractions
Solution Stats
Problem Comments
-
2 Comments
David Hill
on 23 Sep 2021
Could not figure out how to speed up my code. Ended up having to use a lookup table to speed it up sufficiently.
Ramon Villamangca
on 28 Sep 2021
Hi,
There is a shortcut using Mobius Inversion...
Solution Comments
-
2 Comments
Are Mjaavatten
on 28 Sep 2021
I too had problems with the time limit for large arguments and had to resort to a few tricks. But my solution is still general.
Ramon Villamangca
on 28 Sep 2021
There is a shortcut using Mobius Inversion...
Problem Recent Solvers7
Suggested Problems
-
Renaming a field in a structure array
1175 Solvers
-
Count from 0 to N^M in base N.
231 Solvers
-
10517 Solvers
-
I'm going to enjoy watching you calculate, Mr Anderson
36 Solvers
-
Easy Sequences 8: Triangles with integer sides and prime perimeters
7 Solvers
More from this Author90
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!