Problem 51570. Count numbers whose reciprocals' decimal expansions terminate
Solution Stats
Problem Comments
Solution Comments
-
3 Comments
Dyuman Joshi
on 22 May 2021
Not sure why this fails, can anybody tell why?
Largest number in the test case is smaller than 1e16, this should work
ChrisR
on 22 May 2021
Dyuman, your code misses a few powers of 2, for example, for the later tests.
Dyuman Joshi
on 25 May 2021
Thanks, found the insufficiency of the method
-
1 Comment
ChrisR
on 30 Apr 2021
Nikolaos, I don't think Cody scoring accounts for what you mentioned in the comment. :-)
Problem Recent Solvers11
Suggested Problems
-
3324 Solvers
-
8612 Solvers
-
8816 Solvers
-
Is this triangle right-angled?
3935 Solvers
-
Matrix of almost all zeros, except for main diagonal
161 Solvers
More from this Author156
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!