/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/modulepublicimportFormalConjecturesUtil
McDaniel's Theorem on Smith Numbers and the Smith Brothers Problem
Coined by Albert Wilansky (1982), a base-$b$ Smith number ($b \ge 2$; OEIS A006753 for $b = 10$)
is a composite integer $n$ whose base-$b$ digit sum matches the total base-$b$ digit sum across its
prime factors with multiplicity.
Wayne L. McDaniel (1987) proved that base-$10$ Smith numbers form an infinite set. Adjacent
base-$10$ Smith numbers $(n, n + 1)$—beginning at $(728, 729)$—form Smith brothers (the least
starting term of $k$ consecutive base-$10$ Smith numbers is OEIS A059754); whether infinitely many
pairs of Smith brothers exist remains open.
Checks the first two base-$10$ Smith numbers $4$ and $22$, the first Smith brother pair
$(728, 729)$, and the non-examples $2$ (prime) and $6$ ($6 \ne 2 + 3$).