Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Do there exist aaa, bbb such that both an+ban+ban+b and bn+abn+abn+a are primes?

Number theory

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

Question: For a given integer n>2n>2n>2, do there always exist positive integers a,b<na,b<na,b<n such that both an+ban+ban+b and bn+abn+abn+a are primes and (a,b)≠(1,1)(a,b)\neq(1,1)(a,b)=(1,1) ?

The motivation is to find non-trivial permutable primes in base nnn. A prime is called a permutable prime if every permutation of the digits in its base nnn representation is still a prime. (See OEIS A003459). Such a prime is non-trivial if it has at least two distinct digits in base nnn.

Using Python computations, no counterexamples were found for 2<n≤5×1062<n\le 5\times 10^62<n≤5×106. In fact, there exist a<b≤91a< b\le 91a<b≤91 that satisfy the required conditions when 2<n≤5×1062<n\le5\times 10^62<n≤5×106.

Update April 4: This post has received many excellent comments:

(i) As shown by dvitek, if we weaken the requirement a,b<na,b<na,b<n to min⁡{a,b}<n\min\{a,b\}<nmin{a,b}<n, then the existence of such a,ba,ba,b can be derived from Schinzel's Hypothesis H. (link to mathworld; link to wikipedia) dvitek's argument is as follows:

For a given n>2n>2n>2, pick a<na<na<n coprime to nnn and of opposite parity. Let f1(b)=b+an,f2(b)=nb+a.f_1(b)=b+an,f_2(b)=nb+a.f1​(b)=b+an,f2​(b)=nb+a. Then f1,f2f_1,f_2f1​,f2​ are irreducible polynomials with positive leading coefficient, and there is no fixed prime divisor of f1(b)f2(b)f_1(b)f_2(b)f1​(b)f2​(b) valid for all bbb. Thus Schinzel's Hypothesis H implies that there are infinitely many b∈Zb\in\mathbb{Z}b∈Z such that both f1(b)f_1(b)f1​(b) and f2(b)f_2(b)f2​(b) are primes.

I know very little about sieve methods. Without Schinzel's Hypothesis H, I wonder whether one can prove that there exists an absolute constant K∈NK\in\mathbb{N}K∈N such that for all sufficiently large nnn and some a<na<na<n, there exists some b<nb<nb<n satisfying

Ω((an+b)(bn+a))=Ω(f1(b)f2(b))≤K\Omega\left((an+b)(bn+a)\right) = \Omega\left(f_1(b)f_2(b)\right) \le KΩ((an+b)(bn+a))=Ω(f1​(b)f2​(b))≤K

where Ω(m)\Omega(m)Ω(m) denotes the total number of prime factors of a positive integer mmm.

(ii) Alison Miller pointed out that one can unconditionally prove that for any positive integer nnn, there exist infinitely many pairs of positive integers a,ba,ba,b such that both an+ban+ban+b and bn+abn+abn+a are primes. This relies on the prime number theorem for arithmetic progressions (link to wikipedia). Miller’s method can be written as follows:

For a given n>1n>1n>1 and a sufficiently large prime yyy (relative to nnn), by the prime number theorem for arithmetic progressions, there always exists prime xxx such that x≡ny(modn2−1),yn<x<ny,x\equiv ny \pmod{n^2-1} ,\quad \frac{y}{n}<x<ny, x≡ny(modn2−1),ny​<x<ny, Take a=ny−xn2−1,b=nx−yn2−1,a = \frac{ny-x}{n^2-1},b = \frac{nx-y}{n^2-1},a=n2−1ny−x​,b=n2−1nx−y​, Then a,ba,ba,b are positive integers and an+ban+ban+b and bn+abn+abn+a are distinct primes.

Miller also gave a heuristic argument suggesting that the probability of no such a,b<na,b<na,b<n existing is very low. In fact, these distinct a,b<na,b<na,b<n exist if and only if the map from the set of primes <n2<n^2<n2 to the quotient group (Z/(n2−1)Z)×/⟨n⟩(\mathbb{Z}/(n^2-1)\mathbb{Z})^\times \big/ \langle n \rangle(Z/(n2−1)Z)×/⟨n⟩ is not injective.

Since there are about n22log⁡n\frac{n^2}{2\log n}2lognn2​ primes less than n2n^2n2, the possibility that the map is injective is extremely small.

(iii) It appears that Zhang's theorem on admissible prime sets (link to Zhang's paper) can be used to unconditionally prove that, there exist infinitely many triples n,a,bn,a,bn,a,b such that a,b<na,b<na,b<n and both an+ban+ban+b and bn+abn+abn+a are primes.

A set of linear polynomials {b1x+a1,b2x+a2,...,bkx+ak}\{b_1x+a_1,b_2 x+a_2,...,b_kx+a_k\}{b1​x+a1​,b2​x+a2​,...,bk​x+ak​} is called an admissible set if the conditions in Schinzel's Hypothesis H are satisfied. i.e. each pair ai,bia_i,b_iai​,bi​ consists of coprime nonzero integers, bi>0b_i >0bi​>0, and for each prime ppp, ∏i=1k(bix+ai)≢0(modp)\prod_{i=1}^k (b_i x + a_i) \not\equiv 0 \pmod{p}∏i=1k​(bi​x+ai​)≡0(modp) has an integer solution xxx.

Yitang Zhang proved that there exists an absolute m∈Nm\in\mathbb{N}m∈N such that for every admissible set {x+a1,x+a2,...,x+am}\{x+a_1,x+a_2,...,x+a_m\}{x+a1​,x+a2​,...,x+am​}, there exist infinitely many x∈Zx\in\mathbb{Z}x∈Z such that for some 1≤i<j≤m1\le i<j\le m1≤i<j≤m, both x+aix+a_ix+ai​ and x+ajx+a_jx+aj​ are prime.

As noted in an article of A.Granville, Zhang's theorem on admissible sets can be generalized to the case {b1x+a1,b2x+a2,...,bkx+ak}\{b_1x+a_1,b_2 x+a_2,...,b_k x+a_k\}{b1​x+a1​,b2​x+a2​,...,bk​x+ak​}. I think this is to say, there also exists a constant M∈NM\in\mathbb{N}M∈N independent from ai,bia_i,b_iai​,bi​ corresponding to mmm in Zhang's original version of the theorem.

For the question in this post, a desired admissible set can be constructed as follows.

Choose an integer l≥Ml\ge Ml≥M, and consider lll positive integers u1,u2,...,ul>1u_1,u_2,...,u_l > 1u1​,u2​,...,ul​>1 such that gcd⁡(ui,uj)=1\gcd(u_i,u_j) = 1gcd(ui​,uj​)=1 for 1≤i<j≤l1\le i < j \le l1≤i<j≤l and u1≡u2≡...≡ul≡1(modP)u_1\equiv u_2\equiv...\equiv u_l\equiv 1\pmod{P}u1​≡u2​≡...≡ul​≡1(modP) where PPP denotes the product of primes not exceeding lll. Let U=∏k=1luk,Ui=Uui,i=1,2,...,lU = \prod_{k=1}^l u_k ,\quad U_i = \frac{U}{u_i},\quad i=1,2,...,lU=∏k=1l​uk​,Ui​=ui​U​,i=1,2,...,l and set fi(x)=Uix+ui,i=1,2,...,lf_i(x) = U_i x + u_i ,\quad i = 1,2,...,lfi​(x)=Ui​x+ui​,i=1,2,...,l Then the set A={f1(x),f2(x),...,fl(x)}A = \{f_1(x),f_2(x),...,f_l(x)\}A={f1​(x),f2​(x),...,fl​(x)} is an admissible set. By Zhang's theorem, there exist infinitely many x∈Nx\in\mathbb{N}x∈N such that for some 1≤i<j≤M1\le i < j\le M1≤i<j≤M, fi(x)f_i(x)fi​(x) and fj(x)f_j(x)fj​(x) are prime. Take a=ui,b=uj,n=Uxuiuja = u_i,b = u_j,n = \frac{Ux}{u_iu_j}a=ui​,b=uj​,n=ui​uj​Ux​ Then a,b<na,b<na,b<n and both an+ban+ban+b and bn+abn+abn+a are primes. Since there are infinitely many such xxx, we obtain infinitely many nnn for which there exist corresponding a,ba,ba,b.

(iv) Will Sawin also suggested considering the analogous question over function fields.

For example, it seems that we can prove that for any non-constant polynomial f(x)∈Q[x]f(x)\in \mathbb{Q}[x]f(x)∈Q[x], there exists an infinite set S⊆ZS\subseteq\mathbb{Z}S⊆Z such that for any distinct a,b∈Sa,b\in Sa,b∈S, af(x)+baf(x)+baf(x)+b is irreducible in Q[x]\mathbb{Q}[x]Q[x].

Update April 6: As remarked by Robert Israel, even under the restriction a=1a=1a=1, it is likely that for every n≥3n\ge 3n≥3 there always exists a positive integer 1<b<n1<b<n1<b<n such that both n+bn+bn+b and bn+1bn+1bn+1 are prime.

This has been verified to hold for all 3≤n≤1063\le n\le 10^63≤n≤106 by Robert Israel. For each n≥3n\ge 3n≥3, the smallest such b>1b>1b>1 is listed in OEIS A120223.

Statement and context adapted from MathOverflow · Lingling Tong

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

A few useful definitions

Arithmetic progression
A sequence with a constant difference between consecutive terms, such as 3, 7, 11, 15.
Prime number
An integer greater than 1 whose only positive divisors are 1 and itself. Examples include 2, 3, 5 and 7.

Topics : nt.number-theory · prime-numbers · digits

Authors listed by the source : Lingling Tong

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : April 6, 2026

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni