Problem 51570. Count numbers whose reciprocals' decimal expansions terminate
79.17% Correct | 20.83% Incorrect
Last Solution submitted on Aug 12, 2022
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
ChrisR on 30 Apr 2021
Nikolaos, I don't think Cody scoring accounts for what you mentioned in the comment. :-)
Problem Recent Solvers12
Find the longest sequence of 1's in a binary sequence.
Rounding off numbers to n decimals
More from this Author192
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!