On duplicate representations as $2^x + 3^y$ for nonnegative integers $x$ and $y$
Douglas Edward Iannucci

TL;DR
This paper proves that only five positive integers can be expressed as the sum of a nonnegative power of 2 and a nonnegative power of 3 in more than one way, confirming a conjecture from the OEIS.
Contribution
The paper establishes the exact count of integers with multiple representations as sums of powers of 2 and 3, including the case with zero exponents, using elementary methods.
Findings
Exactly five positive integers have multiple representations.
The case with positive exponents is known from Bennett's theorem.
Elementary methods suffice to prove the case with zero exponents.
Abstract
We prove a conjecture posted in the Online Encyclopedia of Integer Sequences, namely that there are exactly five positive integers that can be written in more than one way as the sum of a nonnegative power of 2 and a nonnegative power of 3. The case for both powers being positive follows from a theorem of Bennett. We use elementary methods to prove the case where zero exponents are allowed.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
Topicssemigroups and automata theory · Mathematics and Applications · History and Theory of Mathematics
On duplicate representations as for nonnegative integers and
Douglas Edward Iannucci
Abstract
We prove a conjecture posted in the Online Encyclopedia of Integer Sequences, namely that there are exactly five positive integers that can be written in more than one way as the sum of a nonnegative power of 2 and a nonnegative power of 3. The case for both powers being positive follows from a theorem of Bennett. We use elementary methods to prove the case where zero exponents are allowed.
1 Introduction
In the Online Encyclopedia of Integer Sequences (OEIS, Sloane [3]), sequence A004050 comprises the integers of the form for nonegative integers and . On this sequence’s entry in the OEIS, it was remarked as a conjecture in September 2012 that only five of these integers can be so expressed in two different ways.
In fact, sequence A085634 lists those very integers representable both as and , with , , , and nonnegative integers and . The five elements listed are
[TABLE]
On the entry in the OEIS for sequence A085634, it was remarked in February 2005 that if is in the sequence and , then . In this note, we render this lower bound vacuously true by proving the conjecture: indeed, the five numbers listed above are the only elements of A085634.
We thus assume that
[TABLE]
where , , , and are nonnegative integers, such that (without loss of generality) (whence ).
Equivalently,
[TABLE]
This brings us to sequence A207079 in the OEIS, which is described in its entry as “the only nonunique differences between powers of 3 and 2.” It is given as a finite sequence of five elements, namely 1, 5, 7, 13, and 23. It is commented that the finiteness of this sequence is due to Bennett [1], who, in fact, proved a more general result, from which the finiteness of A207079 follows directly. In his article, he gives a clear, precise history of the general problem of determining the number of solutions to the exponential Diophantine equation , and we learn that the finiteness of the specific sequence A207079 was first proved in 1982. We state here, as a lemma, the special case of Bennett’s result that applies most directly to (2).
Lemma 1**.**
(Bennett)* There are precisely three integers of the form , with and natural numbers, that are also expressible as , with and natural numbers such that . They are*
[TABLE]
These are, respectively, the only two such representations for these three integers. All other integers have either a unique such representation, or none at all.
We apply Bennett’s result to the cases of (1) and (2) where , , , and are all positive integers. This leaves us with the special case when ; clearly (1) and (2) are impossible if . We prove the special case by elementary methods, except for the one instance where we apply Lemma 1 to deduce that 1 has only the single representation (although it is not difficult to prove this fact independently).
2 The case when
Theorem 2**.**
There are precisely three solutions to (1) when . They are
[TABLE]
Proof.
Let in (2). By Lemma 1, if , then , which contradicts the hypothesis . Otherwise, .
Suppose . By Lemma 1, we have the two representations, as in (2),
[TABLE]
Thus, , , , and . This produces
[TABLE]
Suppose . Similarly,
[TABLE]
thus producing
[TABLE]
Suppose . Similarly,
[TABLE]
produces
[TABLE]
∎
3 The case when
For a prime and a natural number , we write if but . We denote the -valuation of by : i.e., if .
Lemma 3**.**
If is a natural number then
[TABLE]
Lemma 4**.**
If is a natural number then
[TABLE]
Lemmata 3 and 4 follow easily from Theorems 94 and 95, Nagell [2].
Theorem 5**.**
There are precisely two solutions to (1) when . They are
[TABLE]
Proof.
We are given
[TABLE]
where , , and are natural numbers, where . Let . Thus,
[TABLE]
It is necessary by Lemma 4 that is odd, as, by (4), .
First, suppose is odd. Then Lemma 3 implies , hence, by (4), . Thus, by (3),
[TABLE]
Thus, by Lemma 1, and . This produces the equation
[TABLE]
It remains to let be even. Then by Lemma 3. Suppose . Then , hence . Then (4) implies , hence , a contradiction as is odd. Therefore and . Writing for an odd natural number , we have by (4)
[TABLE]
Letting
[TABLE]
then is a natural number by Lemma 3, and we obtain the quadratic in ,
[TABLE]
Completing the square yields
[TABLE]
Writing yields the difference of squares factorization
[TABLE]
Therefore
[TABLE]
thus,
[TABLE]
Therefore , ; thus, . Hence and . Recalling , we have . This produces the equation
[TABLE]
∎
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] M. A. Bennett, “Pillai’s conjecture revisited,” J. Number Theory 98 (2003) 228–235.
- 2[2] T. Nagell, Introduction to Number Theory, Wiley Publishers, New York, 1951.
- 3[3] N. J. A. Sloane, The On-Line Encyclopedia of Integer Sequences, http://oeis.org .
