In mathematics a harshad number (or Niven number) in a given number base is an integer that is divisible by the sum of its digits when written in that base.
Example: 2023 is a harshad number because 2023 / (2+0+2+3) = 289
Assume all numbers in this problem are in 10 base
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers17
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
3062 Solvers
-
Project Euler: Problem 3, Largest prime factor
1786 Solvers
-
510 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1256 Solvers
-
String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
1961 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
This problem looks like a subset of #55035 - B-Harshad Numbers