Problem 51570. Count numbers whose reciprocals' decimal expansions terminate
Solution Stats
Problem Comments
Solution Comments
-
3 Comments
Not sure why this fails, can anybody tell why?
Largest number in the test case is smaller than 1e16, this should work
Dyuman, your code misses a few powers of 2, for example, for the later tests.
Thanks, found the insufficiency of the method
-
1 Comment
Nikolaos, I don't think Cody scoring accounts for what you mentioned in the comment. :-)
Problem Recent Solvers11
Suggested Problems
-
6402 Solvers
-
Back to basics 12 - Input Arguments
546 Solvers
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
414 Solvers
-
353 Solvers
-
3363 Solvers
More from this Author147
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!