Problem 1742. Generate a Parasitic Number
Solution Stats
Problem Comments
-
2 Comments
Chris Cleveland
on 22 Nov 2015
As per the wiki page provided in problem 156 "leading zeros are not allowed". Thus the solution set here is flawed.
James
on 23 Nov 2015
Chris, you are correct. The definition of a parasitic number does state "No Leading Zeros." That's why I explicitly stated that some of these values would have a leading zero, and when they would occur. While these numbers are technically not parasitic, the method for generating them is the same.
Problem Recent Solvers84
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
4579 Solvers
-
Increment a number, given its digits
596 Solvers
-
200 Solvers
-
Magic is simple (for beginners)
5300 Solvers
-
Convert a Cell Array into an Array
917 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!