Problems & Puzzles: Puzzles

Puzzle 307. Record Smith Numbers

About Smith numbers in this site please go to puzzles 107, 108 & 247.

Let's remember five ways of obtaining Smith numbers, and the corresponding known records:

Method * Record
9Rn*QS*10M where Rn is a prime repunit and Q is a palindromic prime of the form 102K +A*10K + 1; by Samuel Yates 9R1031 *(1069882+3*1034941+1)1476*103913210 digits = 107,060,074; palprime by Heuer in 2002; Smith by P. Costello

9R109297*(3*10^665829+1)^181538*10^25510596756, digits = 146,384,057,671; Smith by CR, Dec.1, 2026, current record (see below)

(Heuer also found, later the same year 2002, this palprime, 10^75630+8*10^37815+1. Can you construct the corresponding Smith?)

P*Q*10M where P was a small prime and Q was a known Mersenne prime, by P. Costello 191*(2216091-1)*10266 , digits =65319 digits, Q by Slowinski 1985; Smith by P. Costello.

7*(2^136279841-1)*10^2192, digits = 41,026,513; Q by L. Durant (GIMPS) 2024; Smith by CR, 2026 (see below)

(Perhaps it's time to get the minimal P for the recently discovered Mersenne 42?)

t*9Rn*10^M where t comes from the set
{2, 3, 4, 5, 7, 8, 15}, by W. McDaniel
7*9R109297*10^124909, digits = 234,207 (R109297 proven prime 2025); Smith by CR
11^K*9Rn*10^M where Rn is any prime repunit, by Kathy Lewis 11^104951*9R109297*10^94924, digits = 313,517 (R109297 proven prime 2025); Smith by CR
2*P where P is prime whose digital root is 2, by ?

Application 1: P=A*10^X+1, digital root of A=1, by CR

Application 2: P=B*10^X-1, digital root of B=3, by CR

 

P=105994 * 10105994+1, digits = 106000, by g157 , 2000, Generalized Cullen; Smith by CR

P=93 * 1052303-1, digits = 52305, by g243, 2004, Near-repdigit; Smith by CR

 

* For the methods see the Pat Costello's page

Question:

Can you produce/improve any of these records in its own model?

 

 


Larry Soule has found (May 17, 2005) a new record Smith number (7817325 digits!) using the P*Q*10^M scheme by P. Costello, if...he has no mistake in the SOD of M42. See below.

***

Larry wrote:

I was working on puzzle and believe I came up with the minimal P to generate a smith number via the P*Q*10^M scheme of P. Costello. For Q=M42=2^25964951-1, P=5, and M=1095 (superseded, see Dec. 3, 2026), we have N=5*Q*10^1095 the sum of digits is 35178055. The sum of the prime factors is 35170385 (for Q) + 5 (for P) + 1095*(2+5)=35178055.
This was implemented with GMP with some workarounds to sum the digits of such large numbers. I believe this N has 7816230+1095 =7817325 digits!

***

But... In the problem 74 of these pages we can read that "SOD(M25964951) = 35170384", according to Andrew Rupinski calculations, on March 12, 2005. The difference is minimal... just one unit.

What is the correct number: 35170384 or 35170385?

We need a third calculation.

***

Larry wrote (21-24, May, 2005)

Gack! I checked my code and did 2^p rather than 2^p-1. Sorry for the false alarm.
 

...

The new solution for the minimal P to generate a smith number via the P*Q*10^M scheme of P. Costello is:

Q=M42=2^25964951-1
P=127
M=4634 (superseded, see Dec. 3, 2026)

N=127*Q*10^4634 with the sum of digits being 35175028. This N has 7820865 digits.

***

On October 29, 2026, Bas van Dorst launched a massive attack on 61 puzzles (64 results), including this one. Please see his contribution to this puzzle on the page https://www.primepuzzles.net/puzzles/puzz_1288.htm

***

On November 30, 2026, Carlos Rivera answered the question posed above about Heuer's palprime:

N = 9*R1031 * (10^75630+8*10^37815+1)^1027 * 10^2722434

is a Smith number with 80,395,475 digits.

Its prime factors are 3^2, R1031 (a proven prime repunit), Q = 10^75630+8*10^37815+1 (Heuer's proven palprime, 1027 times) and 2^2722434*5^2722434, so the sum of the digits of its prime factors is

6 + 1031 + 10*1027 + 7*2722434 = 19,068,345,

which equals the sum of the digits of N, computed directly from its full decimal expansion.

Why it works: with x = 10^37815, Q^t is a polynomial in x whose 2t+1 coefficients are all smaller than 10^1031 when t ≤ 1032. Then each coefficient contributes exactly 9*1031 to the digit sum of 9*R1031*Q^t, so S(N) = 9*1031*(2t+1), and M is chosen to balance the equation. t = 1027 is the largest value that gives an integer M.

This construction does not beat Costello's record of 107,060,074 digits. With X = 8 the coefficients of Q^t grow like 10^t, while with Q = 10^69882+3*10^34941+1 they grow like 5^t, which allows t = 1476. But with t = 1476 and M = 3913210, Costello's recipe works for ANY larger palprime of the form 10^(2K)+3*10^K+1. So a new palprime of this form with K > 34941 would immediately give a new record for Method 1.

(Construction and verification done with the help of Claude.)

...

A new record Smith number

Following the same idea, Carlos Rivera, on December 1, 2026, found that

N = 9*R109297 * (3*10^665829+1)^181538 * 10^25510596756

is a Smith number with 146,384,057,671 digits, about 1,370 times the previous record of 107,060,074 digits, obtained by P. Costello with Heuer's 2002 palprime 10^69882+3*10^34941+1 (see the Table above and https://t5k.org/curios/cpage/7645.html).  

All its large factors are proven primes: R109297 (proven by A. Enge and P. Underwood in 2025) and Q = 3*10^665829+1 (PrimePages, Gramolin, 2012). The digits of Q sum to only 4. With x = 10^665829, Q^181538 is a polynomial in x whose 181,539 coefficients C(181538,j)*3^j are all smaller than 10^109297 (checked one by one; the largest has 109,295 digits). So each coefficient contributes exactly 9*109297 to the digit sum, and

S(N) = 9*109297*181539 = 178,575,012,747.

The prime factors of N are 3^2, R109297, Q (181538 times), 2^25510596756 and 5^25510596756, so the sum of the digits of its prime factors is

6 + 109297 + 4*181538 + 7*25510596756 = 178,575,012,747.

This is exactly the form 9*Rn*Q^t*10^M of Method 1, with a prime Q that is not a palindrome. With the smaller repunit R1031 the same idea gives 27*R1031*(3*10^665829+1)^1714*10^2272227 (1,143,504,983 digits); there the factor 27 is needed, because with 9*R1031 the Smith equation has no integer solution for this kind of Q.

The conditions were verified by a program, and the method was checked by computing completely a smaller analogue, 27*R19*(3*10^81+1)^31*10^760 (3,306 digits). As far as we know, this is the largest known Smith number.

The digit sum was also confirmed directly: summing the actual digits of each of the 181,539 non-overlapping blocks 9*R109297*C(181538,j)*3^j gives 178,575,012,747 (computed by C. Rivera, December 3, 2026, in 46 minutes on a laptop).

The same construction (t = 1027, M = 2722434) was already used by P. Costello (Fibonacci Quarterly 40(4), 2002) with Heuer's smaller palprime 10^28572+8*10^14286+1, giving a Smith number with 32,066,910 digits.

See also: https://mathworld.wolfram.com/SmithNumber.html and https://t5k.org/curios/page.php?short=109297

(Construction and verification done with the help of Claude.)

***

On December 3, 2026, Carlos Rivera answered the question about the minimal P for the largest known Mersenne prime, M52 = 2^136279841-1 (41,024,320 digits, GIMPS 2024):

N = 7*(2^136279841-1)*10^2192 is a Smith number with 41,026,513 digits.

S(7*Q) = 184,611,070 and S(7) + S(Q) + 7*2192 = 7 + 184,595,719 + 15,344 = 184,611,070. P = 7 is minimal (P = 2, 3, 5 fail).

Note on Larry Soule's 2005 solution for M42: P = 127 is indeed minimal, but the difference S(127*Q) - S(127) - S(Q) = 4634 equals 7*M, so M = 662 (not 4634). The correct Smith number is 127*(2^25964951-1)*10^662, with 7,816,894 digits.

The two empty methods of the Table above now have examples, both with the proven prime repunit R109297: McDaniel's t*9Rn*10^M with t = 7 and M = 124909, and Kathy Lewis's 11^K*9Rn*10^M with K = 104951 and M = 94924. McDaniel's set {2, 3, 4, 5, 7, 8, 15} works for every prime repunit, because the digit sums of the prime factors of its members (2, 3, 4, 5, 7, 6, 8) cover all residues mod 7.

(Computations done with the help of Claude.)

***


 


Records   |  Conjectures  |  Problems  |  Puzzles