A Smith number is a composite number whose base-10 digit sum equals the sum of
the base-10 digit sums of its prime
factors, counted with multiplicity. A prime is excluded because it satisfies
the digit-sum equality automatically. One example of a Smith number is the beast
number
(1)
since
(2)
Another Smith number is
(3)
since
(4)
The first few Smith numbers are 4, 22, 27, 58, 85, 94, 121, 166, 202, 265, 274, 319, 346, ... (OEIS A006753). The corresponding
digit sums are 4, 4, 9, 13, 13, 13, 4, 13, 4, 13, 13,
13, 13, ... (OEIS A050218). McDaniel (1987a)
showed that there are an infinite number of Smith numbers.
A generalized -Smith
number is a composite number satisfying for positive ,
where
adds the base-10 digit sums of the prime
factors of , counted with multiplicity, and
is the base-10 digit
sum of . The following table gives the first few -Smith numbers for small integers and their inverses.
A Smith number can be constructed from every factored repunit (Hoffman 1998, pp. 205-206).
Costello (2002, p. 370) records the earlier Smith-number record
(5)
This number has
decimal digits. Rivera (2026) constructed the Smith number
(6)
which has
decimal digits. Its digit sum and the sum of the digit sums of its prime
factors with multiplicity are both .