Similar to my last problem (B_Harshad Numbers), B-Zuckerman Numbers are numbers that are divisable by the product of their digits when the numbers are written in base-B. Find and output all the B-Zuckerman numbers from an input listing of decimal numbers for a given base-B.
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers6
Suggested Problems
-
2351 Solvers
-
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
140 Solvers
-
Combinations without using nchoosek
141 Solvers
-
Set the array elements whose value is 13 to 0
1461 Solvers
-
Optimally fill a container with elements of different sizes
25 Solvers
More from this Author65
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
In test #1, why are 1, 2, 4 and 8 not considered B-Zuckerman numbers in base-3? For example, 8 is 22 (base-3) and 2*2 = 4.
You are absolutely correct. My algorithm was incorrect. Problem should now be fixed.