On A Property of The Number 977731833235-1
On A Property of The Number 977731833235-1
1. Introduction
Consider the following puzzle from number theory, presented almost 50 years
ago.
Problem 1 (W. Sierpiński). Find a composite number such that it remains com-
posite after altering any two digits in its decimal representation.
We found the problem in [Mat 1977]. It was stated as a puzzle for the readers.
It turned out (see [Mat 1978]) that no one had solved it.
A ternary version of the problem was stated in [Mat 1978] with a solution given
in [Mat 1980]. The basic idea was that altering any two digits in 40 = 11113 keeps it
even and different from 2. Observe that such an assumption (changing exactly two
digits) makes the problem easy to solve (see Table 1). Therefore, it is reasonable
to assume the following statement.
Problem 2 (W. Sierpiński). Find a composite number such that it remains com-
posite after altering at most two digits in its base b representation.
Another question one may ask is whether it is permitted to change the most
significant digit to zero. However, disallowing that gives little help in finding the
number (see Tables 2 and 3), so it is safer to assume it may be done.
The problem was investigated from the theoretical side in [Sch 1992]. There
the author shows, that there are infinitely many solutions to Problem 2 (for any
b), provided that Erdős’s “favorite” conjecture on covering systems of congruences
(see [Erd 1952]) is true. However, since Erdős’s conjecture is open, so remained the
problem.
2. Main results
We present the solution to Problem 2 (bases 2–10) in Tables 2 and 3.
(c) our own implementations of the sieve of Atkin with W = 12, W = 60, and
W = 420 (see [Atk-Ber 2004] for details).
The author of [Ber 2007] claims that the program works for primes up to 1015 . The
code is pretty complicated, so we could not figure out whether it works past that
boundary. That is why we decided to create our own implementation. Surprisingly,
the version W = 12 worked best for really large numbers.
The steps 7–8 can be done in O(eb) time. Consequently, we implemented the
whole loop 6–8 in O(ebe ) time.
In practice, the step 10 is involved only for a couple values of k, so its influence
on running time is negligible.
References
[Atk-Ber 2004] A.O.L. Atkin, D.J. Bernstein, Prime sieves using binary quadratic forms,
Math. Comp. 73 (2004), 1023–1030.
[Ber 2007] D.J. Bernstein, http://cr.yp.to/primegen.html (seen on June 19th, 2007).
[Erd 1952] P. Erdős, On a problem concerning congruence systems (Hungarian), Mat. Lapok
3 (1952), 122–128.
[Mat 1977] Problem corner (Polish), Matematyka 1(147) (1977), p. 55.
[Mat 1978] Problem corner (Polish), Matematyka 6(158) (1978), p. 362.
[Mat 1980] Problem corner (Polish), Matematyka 6(170) (1980), p. 369.
[Sch 1992] A. Schinzel, On a problem by Wacław Sierpiński (Polish), Gradient 1 (1992), No
2, 6–9.
ON A PROPERTY OF THE NUMBER 977731833235239280 5