back to top
Home NHSJS Reports SQTPP: Shifted Quadratic Twice Prime Power Equation – Necessary Conditions and Structural...

SQTPP: Shifted Quadratic Twice Prime Power Equation – Necessary Conditions and Structural Analysis

0
76

Abstract

We study the Diophantine equation n² + 1 = 2pᵏ in positive integers with p prime and k ≥ 1. It lies at the intersection of two classical families, the Lebesgue-Nagell equation and the negative Pell equation, and the results bearing on it are scattered across the literature on generalized Lebesgue-Ramanujan-Nagell equations. The objective is a single classification organized by the exponent k, identifying what remains open. Necessarily conditions are derived by elementary modular arithmetic and, independently, by factoring the left-hand side in the Gaussian integers ℤ[i]. The case k = 2 is reduced to the negative Pell equation through the continued fraction expansion of √2, and the case k > 3 are settled using established theorems on perfect powers in the Pell sequence. All reported solutions were verified by direct computation. Every solution triple satisfies three necessary conditions: is odd, p > 2, and p ≡ 1 (mod 4). Writing n = 2r + 1 gives p = 1 + 2r(r + 1) for k = 1; for every p, n = √(2pᵏ − 1) must be an integer. The prime power is always a sum of two consecutive squares. For k = 1 the problem is an analogue of Landau’s fourth problem; for k = 2 it is known that the negative Pell equation has infinitely many solutions, and only k = 2 is classified completely (by the Pell sequence being (239,13,4). Only k = 1 and k = 2 remain open, and we conjecture that k = 2 admits infinitely many solutions with p prime.

Keywords: Diophantine equations; negative Pell equation; Gaussian integers; Pell numbers; Newman-Shanks-Williams numbers; Lebesgue-Ramanujan-Nagell equations.

Introduction

A central theme in number theory has always been the study of the integer solutions to polynomial equations, especially Diophantine equations of the form x2+D=Bynx^2+D=By^n. The Lebesgue-Nagell equation x2+D=ynx^2+D=y^n, with DD as a fixed integer and nn as a variable exponent, has been solved for many specific values of DD, and the range of values now settled has been extended considerably by recent work1,2,3. The principal tools are primitive divisor theorems for Lucas and Lehmer sequences, which bound the variable exponent, together with modular methods based on the Galois representations attached to Frey curves4,5,6,7. Classical descent in quadratic fields settles many further individual cases8,9,10 The closely related Pell equation x2Dy2=1x^2-Dy^2=1 and the negative Pell equation x2Dy2=1x^2-Dy^2=-1 have been studied extensively11,12. For non-square DD, the positive equation always has infinitely many solutions parametrized by the continued fraction expansion of DD; the negative equation, by contrast, is solvable only for those DD whose continued fraction period is odd, and for most DD it has no solutions at all11. The case D=2D=2, which is the one relevant to this paper, has odd period, so its negative equation is solvable with complete solutions parametrized by the continued fraction expansion11 of DD. This work studies the hybrid of the two families of equations obtained by doubling the prime power.

We call this equation Shifted Quadratic Twice Prime Power Equation: “shifted” because the quadratic term is incremented by one, and “twice” because the right-hand side carries the factor 2, forcing the right side to be even and the left-hand side to factor as (n+i)(ni)(n+i)(n-i) in the Gaussian integers11.

n2+1=2pk

We call this equation Shifted Quadratic Twice Prime Power Equation: “shifted” because the quadratic term is incremented by one, and “twice” because the right-hand side carries the factor 2, forcing the right side to be even and the left-hand side to factor as (n+i)(ni)(n+i)(n-i) in the Gaussian integers11. At the intersection of these families of equations, a prime base is uniquely interesting, with the right-hand side carrying the factor 2. It is the equation pkp^k where k1k\geq 1 are positive integers. The restriction that the base be prime narrows the equation to make the primality structure of solutions interesting and unique. The case k=2k=2 is the negative Pell equation n22p2=1n^2-2p^2=-1, whose solutions (n,p)(n,p) consist of the NSW numbers paired with the odd-indexed Pell numbers11,13,14. The case k=4k=4 is the well-known Ljunggren equation X2+1=2Y4X^2+1=2Y^4, solved by Ljunggren in 1942, with a modern proof given by Steiner and Tzanakis15,16 and an elementary proof given by Tao17. The case k=1k=1 connects to Landau’s fourth problem on the infinitude of primes of the form n2+1n^2+1, questions about the prime factorization of numbers of the form n2+1n^2+1 have a long history going back to Störmer and Lehmer18.

The equation studied here belongs to a well-developed line of research on generalized Lebesgue-Ramanujan-Nagell equations of the form x2+C=ynx^2+C=y^n. Cohn19 solved the base case x2+1=2ynx^2+1=2y^n for odd prime exponents nn by classifying the perfect powers in the Pell sequence; Pethő20 obtained the classification of perfect Pell powers independently, and Bennett21 later treated perfect powers in Pell-type sequences by different methods. Tengely22 resolved broad families of the equations x2+a2=2ypx^2+a^2=2y^p and x2+q2m=2ypx^2+q^{2m}=2y^p, showing in the latter case23 that the exceptional solutions are exactly those in which y is a sum of two consecutive squares. Pink and Tengely24 studied full powers in the arithmetic progressions xa,yb,x2x^a,y^b,x^2, which is equivalent to x2+a2=2ynx^2+a^2=2y^n, and gave explicit bounds for the exponent n; Pink25 extended these bounds to x2+(p1z1pszs)2=2ynx^2+(p_1^{z_1}\cdots p_s^{z_s})^2=2y^n. Abu Muriefah, Luca, Siksek, and Tengely26 gave sharp exponent bounds for x2+C=2ynx^2+C=2y^n with C1(mod4)C\equiv1\pmod4 using the primitive divisor theorem for Lehmer sequences, and Zhu, Le, and Togbé27 described all solutions of x2+p2m=2ynx^2+p^{2m}=2y^n. Surveys of this literature are given by Bérczes and Pink28 and by Le and Soydan29; further representative results concern neighbouring families of the same type. For a fixed constant term, the equation has been settled for many individual constants by classical descent, and the resulting body of work has been surveyed8,9,10,30. When the constant term is instead built from a few fixed small primes carrying variable exponents, several such equations have been resolved completely31,32,33,34,35 A third group of results treats single equations with one specific constant, together with variants carrying a leading coefficient36,37,38. Finally, the number of solutions of the generalized Ramanujan-Nagell equation has been bounded, and the perfect powers in products of Pell and Pell-Lucas numbers have been determined39,40. Positioned against this body of work, what remains open for the present equation is the p² primality question, and the contribution of this paper is the elementary unification of the known results into a single classification organized by the exponent k.

The contributions of this paper are three-fold:

(i) A unified derivation of the necessary conditions that n is odd, p > 2, and p ≡ 1 (mod 4). We present two proofs of the last condition: proof via Euler’s criterion, and a proof through factorization11 in Z[i].

(ii) A structural identity holding for every k ≥ 1: converting n = 2m + 1 transforms the equation into pᵏ = m² + (m + 1)², so every solution forces pᵏ itself to be a sum of two consecutive squares. We state and prove this identity in full generality (Proposition 1). This is exactly the mechanism for Cohn’s proof19 and of Tengely’s theorem on x² + q²ᵐ = 2yᵖ, where solutions with y (a sum of two consecutive squares) form the exceptional family.

(iii) A classification of solutions by k. For k = 1, the equation is analogous to Landau’s fourth problem of infinite primes of the form m² + 1. For k = 2, it reduces to the negative Pell’s equation n² − 2p² = −1 with the conjecture13,41 that there are infinitely many solutions to this equation with prime p. For all k ≥ 3, we obtain a complete classification (Theorem 1): combining Cohn’s theorem with Ljunggren’s theorem, the only nontrivial solution triple with k ≥ 3 is (239,13,4) and there are no solutions with p > 1 for any other exponent k ≥ 3.

The rest of the paper proves the necessary conditions and the consecutive-squares identity. It explains the conditions for each case k = 1,2 ≥ 3 in turn and states the central conjecture for the k = 2 case. Throughout, results quoted from the literature are labelled as facts and carry their source; the lemmas, propositions, corollary and theorem are proved here. Theorem 1 being an assembly of the quoted facts rather than a new finiteness result.

Methods

Research design and analytical tools

This study is theoretical and mathematical rather than experimental. It involves no human or animal subjects and no collected data, so no ethical approval was required. The research design is a structured classification of the solution set of the equation for k ≥ 1, with each case analysed by the appropriate route. For k = 1, the proof uses elementary modular arithmetic, which yields the necessary conditions of Lemmas 1–3; unique factorization in the Gaussian integers Z[i], which gives an independent second proof of the congruence condition on p; the continued fraction expansion of √2, which parametrizes the negative Pell equation and therefore the case k = 2; and established classification theorems for perfect powers in linear recurrence sequences, which settle the cases k ≥ 3.

Every solution triple reported in this paper, and every entry of Tables 1–3, was verified by direct arithmetic computation of both sides of the equation together with a primality check of p. The Newman-Shanks-Williams values were generated from their standard recurrence. Throughout, statements quoted from the literature are labelled as facts and carry their source, while the lemmas, propositions, corollary, remark and theorem stated below are proved here.

Preliminaries

The proofs in this paper combine classical tools in elementary modular arithmetic; the continued fraction parametrization of the negative Pell equation; and two finiteness theorems for perfect powers in linear recurrence sequences. The Gaussian integers Z[i] = {a + bi : a, b ∈ Z} form a unique factorization domain, and every element has a norm N(a+bi)=a2+b2N(a+bi)=a^2+b^2. The ring Z[i] is a Euclidean domain, hence a UFD, so unique factorization is available. We use the notation i² = −1. The ring is also a PID. For odd primes p, the congruence p1(mod4)p \equiv 1 \pmod 4 follows from Euler’s criterion: if p divides n² + 1, then n21(modp)n^2 \equiv -1 \pmod p, so (1)(p1)/21(modp)(-1)^{(p-1)/2}\equiv 1\pmod p, forcing p ≡ 1 mod 4. The negative Pell equation n22p2=1n^2 – 2p^2 = -1 has solutions parametrized by the continued fraction expansion of √211. The equations of this type have been studied extensively, including the classification of perfect powers in Pell sequences4,19,20,21,22,23,26,27 x²+p²ᵐ=2yⁿ.

Definition 1 (Solution Triple). A triple (n,p,k)Z+(n,p,k)\in\mathbb{Z}^+ is a solution if pp is prime, k1k\ge 1, and n2+1=2pkn^2+1=2p^k.

Definition 2 (Quadratic Residue). An integer aa is a quadratic residue modulo pp if x2a(modp)x^2\equiv a\pmod p for some integer xx. By Euler’s criterion, for odd prime pp, this holds iff a(p1)/21(modp)a^{(p-1)/2}\equiv1\pmod p.

Fact 1 (Euler’s Criterion). For an odd prime pp the integer 1-1 is a quadratic residue modulo pp if and only if p1(mod4)p\equiv1\pmod4. This follows because (1)(p1)/2=1(-1)^{(p-1)/2}=1 if and only if 4(p1)4\mid(p-1).

Fact 2 (Negative Pell’s Equation for D=2D=2)11: All positive integer solutions to x22y2=1x^2-2y^2=-1 are given by x+y2=(1+2)2m+1x+y\sqrt2=(1+\sqrt2)^{2m+1} for m=1,2,3,m=1,2,3,\ldots, yielding the pairs (1,1),(7,5),(41,29),(239,169),(1393,985),(1,1),(7,5),(41,29),(239,169),(1393,985),\ldots.

Fact 3 (Cohn).19: The Pell sequence contains no perfect powers other than 11 and 2220; the only nontrivial xx with x±1x\pm1 a perfect power greater than 1 is p=169=x2p=169=x^2. Consequently, the only solution of x2+1=2ykx^2+1=2y^k in positive integers for an odd prime exponent kk is x=y=239x=y=239.

Fact 4 (Ljunggren).15 X2+1=2Y4X^2+1=2Y^4 has exactly two positive integer solutions, (X,Y)=(1,1)(X,Y)=(1,1) and (239,13)(239,13). Steiner and Tzanakis16 give a modern proof, while Tao17 gives an elementary proof. The solutions of x2+1=2ykx^2+1=2y^k in positive integers are (x,y)=(1,1)(x,y)=(1,1) and (x,y)=(239,13)(x,y)=(239,13).

Results

Necessary Conditions

The following three lemmas use modular arithmetic to establish the necessary conditions for the solution triple.

Lemma 1: If (n,p,k)(n,p,k) is a solution triple, then nn is odd.

Proof: Suppose nn is even. Then n20(mod4)n^2 \equiv 0 \pmod 4, so n2+11(mod4)n^2+1\equiv1\pmod4. If pp is odd, then 2pk2(mod4)2p^k\equiv2\pmod4; if p=2p=2, then 2pk=2k+10(mod4)2p^k=2^{k+1}\equiv0\pmod4 for k1k\ge1, both 0(mod4)0\pmod4 and 2(mod4)2\pmod4 are unequal to 1(mod4)1\pmod4, a contradiction. Hence nn must be odd.

Lemma 2: If (n,p,k)(n,p,k) is a solution triple, then p>2p>2.

Proof: Suppose p=2p=2. Then 2pk=2k+10(mod4)2p^k=2^{k+1}\equiv0\pmod4 for k1k\ge1. By Lemma 1, nn is odd, so n2+12(mod4)n^2+1\equiv2\pmod4. As 20(mod4)2\not\equiv0\pmod4, this is a contradiction. Hence p>2p>2.

Lemma 3: If (n,p,k)(n,p,k) is a solution triple, then p1(mod4)p\equiv1\pmod4.

First proof (via Euler’s criterion): Since pn2+1p\mid n^2+1, we have n21(modp)n^2\equiv-1\pmod p, so 1-1 is a quadratic residue modulo pp. By Lemma 2, pp is odd, and by Fact 1 it follows that p1(mod4)p\equiv1\pmod4.

Second Proof (via Gaussian integers): In the Gaussian integers we have the factorizationn2+1=(n+i)(ni)=2pk,k1n^2+1=(n+i)(n-i)=2p^k,\quad k\ge1

This implies p(n+i)(ni)p\mid(n+i)(n-i) in Z[i]\mathbb{Z}[i]. By Lemma 2, the prime pp is odd. Recall that a rational prime q3(mod4)q\equiv3\pmod4 remains prime in Z[i]\mathbb{Z}[i]11 in Z[i]\mathbb{Z}[i]. If p3(mod4)p\equiv3\pmod4, then a Gaussian prime pp dividing the product (n+i)(ni)(n+i)(n-i) would divide one of the factors, say pn+ip\mid n+i. Writing n+i=p(a+bi)n+i=p(a+bi) with a,bZa,b\in\mathbb{Z} and comparing imaginary parts gives pb=1pb=1, which is impossible for p>1p>1. The same holds for nin-i. Hence p3(mod4)p\not\equiv3\pmod4 and since pp is odd, we conclude p1(mod4)p\equiv1\pmod4.

These lemmas together characterize the solution space in which the solution triple must lie. These are necessary but not sufficient conditions for the solution triple. Not every odd nn and prime p1(mod4)p\equiv1\pmod4 gives a solution to the equation.

Proposition 1 (Consecutive-squares identity for every k1k\ge1):

Let k1k\ge1. A pair of positive integers (n,p)(n,p) satisfies n2+1=2pkn^2+1=2p^k if and only if nn is odd and, writing n=2m+1n=2m+1 with m0m\ge0,pk=m2+(m+1)2.p^k=m^2+(m+1)^2.

In particular, in every solution triple the prime power pkp^k is a sum of two consecutive squares42.

Proof: If n2+1=2pkn^2+1=2p^k then nn is odd (by the argument of Lemma 1). Substituting n=2m+1n=2m+1,(2m+1)2+1=2pk4m2+4m+2=2pk2m2+2m+1=pk(2m+1)^2+1=2p^k\Leftrightarrow4m^2+4m+2=2p^k\Leftrightarrow2m^2+2m+1=p^km2+(m+1)2=pk,\Leftrightarrow m^2+(m+1)^2=p^k,

and each step is reversible.

Proposition 2 (An analogue of Landau’s fourth problem for k = 1):

For k = 1, the equation becomes analogous to Landau’s fourth problem, the conjecture that there are infinitely many primes of the form n² + 1.

If n2+1=2pn^2+1=2p, then by Proposition 1 with k=1k=1, the solutions with p prime correspond exactly to primes of the form p=m2+(m+1)2=2m2+2m+1p=m^2+(m+1)^2=2m^2+2m+1, thus of course to consecutive squares42. The infinitude of such primes is an open problem of the same character as Landau’s fourth problem. Questions about the prime divisors of the sequence m2+(m+1)2m^2+(m+1)^2 go back to Störmer and Lehmer18. The table below gives examples of the solutions that satisfy these conditions.

npkVerification
3513² + 1 = 10 = 2 × 5; 5 ≡ 1 (mod 4)
94119² + 1 = 82 = 2 × 41; 41 ≡ 1 (mod 4)
1161111² + 1 = 122 = 2 × 61; 61 ≡ 1 (mod 4)
Table 1 | Example solutions of n^2+1=2p, each satisfying n odd, p > 2 prime, and p \equiv 1 (mod 4) based on direct arithmetic computation.

Proposition 3: Reduction to the Negative Pell Equation for k=2:

For the case k=2k=2, the equation reduces to a classical equation whose solution set is well understood. A pair (n,p)(n,p) gives a solution triple (n,p,2)(n,p,2) if and only if (n,p)(n,p) is a positive integer solution ton22p2=1n^2-2p^2=-1

with y=py=p prime.

Proof: The equation n2+1=2p2n^2+1=2p^2 can be rearranged to n22p2=1n^2-2p^2=-1 which is the negative Pell equation.

Proposition 4 (Infinite solutions of the Negative Pell’s Equation): The equation x22y2=1x^2-2y^2=-1 has infinitely many positive integer solutions.

Proof: The continued fraction expansion of 2\sqrt2 is [1;2,2,2,][1;2,2,2,\ldots]. Let hmh_m and kmk_m be the m-th convergent, where m=0,1,2,m=0,1,2,\ldots. Then,hm22km2=(1)m+1h_m^2-2k_m^2=(-1)^{m+1}

Therefore, for every even m,

hm22km2=1.h_m^2-2k_m^2=-1.

Since there are infinitely many non-negative even integers m, there are infinitely many positive integer solutions to

x22y2=1.x^2-2y^2=-1.

Since there are infinitely many non-negative even integers m, there are infinitely many positive integer solutions to

Corollary 1: There are infinitely many positive integer solutions (n,p)(n,p) to n2+1=2p2n^2+1=2p^2, namely the pairs listed in Fact 2. Each pair for which p is prime gives a solution triple with k=2k=2, e.g. (7,5,2)(7,5,2) and (41,29,2)(41,29,2).

Primality of Solutions

Corollary 1 shows infinitely many candidate solution triples. The question that remains is whether infinitely many p values are prime. Among the first six negative Pell’s solutions, p is (1,29,169,5741,...)(1,29,169,5741,…). Of these, 5,295,29 and 57415741 are prime, while 1,169 and 985 are not, giving infinitely many prime values in the conjecture. The central claim is stated as a conjecture:

Conjecture 1 (Shifted Quadratic Twice Prime Power Conjecture): There are infinitely many positive integers n such that n2+1=2p2n^2+1=2p^2 with p prime.

By Proposition 3 and Fact 2 this is not an independent conjecture but a restatement of an existing open problem: the admissible values of p are exactly the odd-indexed Pell numbers P2mP_{2m} (OEIS A001633), the corresponding n are the Newman-Shanks-Williams numbers (OEIS A002315), and the conjecture asserts that infinitely many odd-indexed Pell numbers are prime. Whether the Pell sequence contains infinitely many primes is open, and the indices of the known Pell primes are catalogued as OEIS A09665013. The conjecture is stated here for completeness and to place the present classification as a summary of all the prior work.

Index 2j12j-1p=P(2j1)p=P(2j-1)Prime?nn (NSW number)
11No (unit)1
35Yes7
529Yes41
7169No (13²)239
9985No (5·197)1393
115741Yes8119
1333461Yes47321
15195025No275807
294456048249Yes6318038201
4117468062004…Yes24704332194801
Table 2 | Primality of the odd-indexed Pell numbers P2j1P_{2j-1} for 12j1411 \leq 2j-1 \leq 41, computed directly. Each prime entry yields a solution triple (n,p,2p2)(n,p,2p^2) where 2p2=n2+12p^2=n^2+1.

Six of the first twenty-one odd-indexed Pell numbers are prime; the count of prime Pell numbers is expected to grow without bound but no proof is known. Table 2 is offered as evidence consistent with Conjecture 1, not as support for it.

Theorem 1 (Complete classification for k ≥ 3):

The only solution triple (n,p,k)(n,p,k) of n2+1=2pkn^2+1=2p^k with k3k\ge3 is (239,13,4)(239,13,4). In particular, for every k3k\ge3 with k4k\ne4 the equation has no solution with p prime, and for k=4k=4 it has exactly one.

Proof: Let (n,p,k)(n,p,k) be a solution with k3k\ge3. Every integer k3k\ge3 either has an odd prime divisor or is divisible by 4.

Case 1: k has an odd prime divisor. Write k=rsk=rs, where r3r\ge3 is an odd prime. Then ps=yp^s=y and the equation becomes n2+1=2yrn^2+1=2y^r. By Fact 3 (Cohn), x2+1=2yrx^2+1=2y^r has no positive exponent p. Cohn’s theorem19 and Pethő’s20 give that the only solution is x=1,y=1x=1,y=1, which is impossible for p>1p>1. Thus this case cannot occur.

Case 2: k has no odd prime divisor, so k is a power of 2 with k4k\ge4. By Fact 4 (Ljunggren), x2+1=2y4x^2+1=2y^4 has exactly two solutions (x,y)=(1,1)(x,y)=(1,1) and (239,13)(239,13). If k=4k=4, the latter gives the solution (239,13,4)(239,13,4). If k>4k>4, then k=4tk=4t with t2t\ge2, and y=pty=p^t would have to be 13, which is impossible for p>1p>1. Thus k>4k>4 has no solutions.

The trivial instance k=4k=4, p=1p=1 is not prime. Therefore Theorem 1 shows that the paper’s classification is global across every exponent: the only nontrivial solution triple with k3k\ge3 is (239,13,4)(239,13,4), and k=1k=1 and k=2k=2 are the only cases in which the existence of infinitely many solutions remains unresolved.

Solution Triple Verification

The two k=2k=2 triples below were verified by direct arithmetic and satisfy all necessary conditions of Lemmas 1–3 (Table 3); the remaining triple (239,13,4)(239,13,4) is the unique k3k\ge3 solution of Theorem 1 and satisfies 2392+1=2×134239^2+1=2\times13^4.

npkVerification
7527² + 1 = 50 = 2 × 5²; 5 ≡ 1 (mod 4)
4129241² + 1 = 1682 = 2 × 29²; 29 ≡ 1 (mod 4)
Table 3 | Example solutions of n2+1=2pkn^2+1=2p^k, each satisfying nn odd, p>2p>2 prime, and p1(mod4)p\equiv1\pmod4 based on direct arithmetic computation.

Triples (7,5,2)(7,5,2) and (41,29,2)(41,29,2) arise from the second and third solutions of the negative Pell equation listed in Fact 2, i.e. from the odd powers of 1+21+\sqrt2; their p values 5 and 29 are the odd-indexed Pell numbers P3=5P_3=5 and P5=29P_5=29.

Discussion

Interpretation and Attribution of the Classification

The classification in Theorem 1 rests entirely on Cohn19 (with Pethő’s independent proof20 and Tengely23 and Tao’s elementary proof17 are alternatives and Ljunggren15 together with Steiner–Tzanakis16 and Tao17 as alternatives37. The primitive divisor theorem of Bilu, Hanrot, and Voutier4 provides the general framework for perfect powers in recurrence sequences. The negative Pell equation and the generalized Lebesgue-Ramanujan-Nagell equation have also been extensively studied11,6,7,5.

The elementary identity pk=m2+(m+1)2p^k=m^2+(m+1)^2 gives a direct structural link between the present equation and the theory of sums of two squares. Results of Tengely22 and related work on x2+q2m=2ypx^2+q^{2m}=2y^p23 place the present equation within a broader family of generalized Lebesgue-Ramanujan-Nagell equations.26,27.

Remark 1 (why k3k\ge3 is a constrained problem in the Pell sequence): The triple (239,13,4) does not provide the full explanation; its listed the equation and extra constraint. The case k3k\ge3 has been completely classified by the results cited above. When k=2k=2, the equation is n22p2=1n^2-2p^2=-1 and p is an odd-indexed Pell number. When k=4k=4, p4=169p^4=169 and 2392+1=2p4239^2+1=2p^4, so p=13p=13. The same holds in general: for even kk, a solution forces the Pell coordinate P2m1P_{2m-1} to be a perfect k/2k/2-th power, while for odd prime divisors of k the equation reduces to a perfect power in the Pell sequence. Cohn’s classification of the powers in Pell powers19 and Pethő’s19 that settles k3k\ge3. Tao17 states the resulting classification directly (his Theorem 5).

Proposed Variants

Five variants are proposed to guide further research. Each generalizes a single parameter of the original equation.

Type A (Varied Addition): n2+1=2pkn^2+1=2p^k for k1k\ge1 with p odd prime. Then n=(m+1)2n=(m+1)^2, i.e., n and 2p^k have same parity, and if p then 1(mod4)-1\pmod4, then n2+1n^2+1 must be a multiple of 4. The right side 2pk2p^k is even, so n21(mod2)n^2\equiv-1\pmod2, giving the equation modulo p gives m21(modp)m^2\equiv-1\pmod p. The family x2+2yk=2pkx^2+2y^k=2p^k is resolved in Tengely22 and bounded in Pink and Tengely24, and extended to x2+q2m=2ypx^2+q^{2m}=2y^p by Zhu, Le, and Togbé27.

Type B (Varied Multiplier): n2+1=cpkn^2+1=cp^k for c3c\ge3. If c is odd and p is odd, the right side is odd, forcing n even; in that case n20(mod4)n^2\equiv0\pmod4, giving cpk1(mod4)c p^k\equiv1\pmod4. If c is even, p is odd, then cpk0(mod2)cp^k\equiv0\pmod2, so n is odd and n2+12(mod4)n^2+1\equiv2\pmod4, which constrains the 2-adic valuation of c. Proof of all solutions to x2+1=cykx^2+1=cy^k is more involved and is treated in the cited references37.

Type C (Combined Type A and Type B): n2+1=cpkn^2+1=cp^k. The most general single-prime variant, the analysis is specific to each pair (c,p)(c,p). The survey of Le and Soydan29 gives an overview of these generalized equations with c and y as variables28.

Type D (Coefficient of n): an2+1=2pkan^2+1=2p^k for a2a\ge2. For k=2k=2, it yields an22p2=1an^2-2p^2=-1, a generalized Pell’s equation whose solvability depends on a. The closely related 2x2+1=yn2x^2+1=y^n is completely solved by Tao17 and Ljunggren37, while 2x2+1=yn2x^2+1=y^n is also considered in the generalized setting.

Limitations

Three limitations should be noted. First, this paper establishes necessary conditions rather than sufficient ones: not every odd n paired with a prime p ≡ 1 (mod 4) yields a solution, so Lemmas 1-3 narrow the search space without characterizing it. Second, the complete classification for k3k\ge3 is not proved here. It is assembled from Cohn’s classification of perfect Pell powers and from Ljunggren’s theorem for the special case k=4k=4. Third, the results outside the elementary techniques used in this paper, and Theorem 1 should therefore be read as a synthesis of existing results rather than as a new finiteness result. Third, Conjecture 1 remains unproved, and the computation summarized in Table 2 covers only the odd-indexed Pell numbers of index at most 41. Because the prime values in such a sequence thin rapidly, a finite table of this kind is consistent with the conjecture but cannot constitute evidence for it; extending the computation would sharpen the empirical picture without changing its logical status.

Conclusion

We have studied the Diophantine equation n2+1=2pkn^2+1=2p^k in this paper, the Shifted Quadratic Twice Prime Power Equation. Three necessary conditions for every solution triple of the Shifted Quadratic Twice Prime Power Equation flow from Lemmas 1-3: n must be odd, p must exceed 2, and p1(mod4)p\equiv1\pmod4. For k=1k=1, the equation is analogous to Landau’s fourth problem (Proposition 2). For k=2k=2, the equation reduces to the negative Pell equation x22y2=1x^2-2y^2=-1 (Proposition 3), which possesses infinitely many solutions of Fact 2. Corollary 1 shows that prime Pell values of those solutions have p values listed as infinitely many among the odd-indexed Pell numbers, though the conjecture of prime values remains unproved. The computational evidence of Table 2 is consistent with it. For k3k\ge3, the classification is complete (Theorem 1): the only solution triple is (239,13,4)(239,13,4), so k=1k=1 and k=2k=2 are the only unresolved cases. The classification framework consolidates the known results on this equation and positions the one genuinely open question, the k=2k=2 primality question, within the existing literature on Pell numbers and the generalized Lebesgue-Ramanujan-Nagell family.

That a question as elementary to state as whether n2+1n^2+1 can twice a prime power infinitely often should elude proof is a reminder upon which, to an unsolved question about prime values of a linear recurrence is a reminder of how narrow the boundary is between the elementary arithmetic that can be settled by hand and the arithmetic that is still out of reach.

Acknowledgments

The author thanks The Harker School for its support of this research.

Author

Ryan is a high school student at Harker with a strong interest in number theory and discrete mathematics. Mathematics is his favorite subject and passion. He loves to participate in math competitions and help with math research. He enjoys applying mathematics to solve real-world problems and come up with unique solutions. This work reflects his curiosity and systematic approach to classifying prior results in number theory in a unique way.

References

  1. A. Dabrowski. On the Lebesgue-Nagell equation. Colloquium Mathematicum. Vol. 125, pg. 245-253, 2011, https://doi.org/10.4064/cm125-2-9. []
  2. M. A. Bennett, P. Michaud-Jacobs, S. Siksek. Q-curves and the Lebesgue-Nagell equation. Journal de Théorie des Nombres de Bordeaux. Vol. 35, pg. 495-510, 2023, https://doi.org/10.5802/jtnb.1254. []
  3. E. Katz, K. Pratt. On the Lebesgue-Nagell equation x²−2=yᵖ. arXiv preprint. arXiv:2507.12397, 2025, https://arxiv.org/abs/2507.12397. []
  4. Y. Bilu, G. Hanrot, P. M. Voutier. Existence of primitive divisors of Lucas and Lehmer numbers. Journal für die reine und angewandte Mathematik (Crelle’s Journal). Vol. 539, pg. 75-122, 2001, https://doi.org/10.1515/crll.2001.080. [] [] []
  5. M. A. Bennett, C. M. Skinner. Ternary Diophantine equations via Galois representations and modular forms. Canadian Journal of Mathematics. Vol. 56, pg. 23-54, 2004, https://doi.org/10.4153/CJM-2004-002-2. [] []
  6. Y. Bugeaud, M. Mignotte, S. Siksek. Classical and modular approaches to exponential Diophantine equations II. The Lebesgue-Nagell equation. Compositio Mathematica. Vol. 142, pg. 31-62, 2006, https://doi.org/10.1112/S0010437X05001739. [] []
  7. Y. Bugeaud, M. Mignotte, S. Siksek. Classical and modular approaches to exponential Diophantine equations I. Fibonacci and Lucas perfect powers. Annals of Mathematics. Vol. 163, pg. 969-1018, 2006, https://doi.org/10.4007/annals.2006.163.969. [] []
  8. J. H. E. Cohn. The Diophantine equation x²+C=yⁿ. Acta Arithmetica. Vol. 65, pg. 367-381, 1993, https://doi.org/10.4064/aa-65-4-367-381. [] []
  9. J. H. E. Cohn. The Diophantine equation x²+C=yⁿ, II. Acta Arithmetica. Vol. 109, pg. 205-206, 2003, https://doi.org/10.4064/aa109-2-8. [] []
  10. B. Sury. On the Diophantine equation x2+2=ynx^2+2=y^n. Archiv der Mathematik. Vol. 74, pg. 350-355, 2000, https://doi.org/10.1007/s000130050454. [] []
  11. G. H. Hardy, E. M. Wright. An introduction to the theory of numbers. Oxford University Press, 6th Edition, 2008. [] [] [] [] [] [] [] [] [] [] []
  12. M. Acewicz, K. Pąk. Pell’s equation. Formalized Mathematics. Vol. 25, pg. 197-204, 2017, https://doi.org/10.1515/forma-2017-0019. []
  13. N. J. A. Sloane (Editor). The on-line encyclopedia of integer sequences. Sequences A001333, A000129 (Pell numbers), A001653 (odd-indexed Pell numbers), A002315 (Newman-Shanks-Williams numbers), A096650 (indices of prime Pell numbers). https://oeis.org, 2026. [] [] []
  14. M. Newman, D. Shanks, H. C. Williams. Simple groups of square order and an interesting sequence of primes. Acta Arithmetica. Vol. 38, pg. 129-140, 1980/81, https://doi.org/10.4064/aa-38-2-129-140. []
  15. W. Ljunggren. Zur Theorie der Gleichung x²+1=Dy⁴. Avhandlinger Utgitt av det Norske Videnskaps-Akademi i Oslo I. Mat.-Naturv. Klasse. Vol. 27, pg. 1-27, 1942. [] [] []
  16. R. Steiner, N. Tzanakis. Simplifying the solution of Ljunggren’s equation X²+1=2Y⁴. Journal of Number Theory. Vol. 37, pg. 123-132, 1991, https://doi.org/10.1016/S0022-314X(05)80029-0. [] [] []
  17. L. Tao. A note on two Diophantine equations. Applied Mathematical Sciences. Vol. 6, pg. 6665-6671, 2012, https://www.m-hikari.com/ams/ams-2012/ams-133-136-2012/taoAMS133-136-2012-2.pdf. [] [] [] [] [] []
  18. D. H. Lehmer. On a problem of Störmer. Illinois Journal of Mathematics. Vol. 8, pg. 57-79, 1964, https://doi.org/10.1215/ijm/1256067456. [] []
  19. J. H. E. Cohn. Perfect Pell powers. Glasgow Mathematical Journal. Vol. 38, pg. 19-20, 1996, https://doi.org/10.1017/S0017089500031207. [] [] [] [] [] [] [] []
  20. A. Pethő. The Pell sequence contains only trivial perfect powers. In: Sets, graphs and numbers (Budapest, 1991), Colloquia Mathematica Societatis János Bolyai. Vol. 60, North-Holland, Amsterdam, pg. 561-568, 1992, https://korandi.org/docs/misc/setsgraphsnumbers/setsgraphsnumbers39.pdf. [] [] [] [] []
  21. M. A. Bennett. Powers in recurrence sequences: Pell equations. Transactions of the American Mathematical Society. Vol. 357, pg. 1675-1691, 2004, https://doi.org/10.1090/S0002-9947-04-03586-X. [] []
  22. Sz. Tengely. On the Diophantine equation x²+a²=2yᵖ. Indagationes Mathematicae (N.S.). Vol. 15, pg. 291-304, 2004, https://doi.org/10.1016/S0019-3577(04)90021-3. [] [] [] []
  23. Sz. Tengely. On the Diophantine equation x2+q2m=2ypx^2+q^{2m}=2y^p. Acta Arithmetica. Vol. 127, pg. 71-86, 2007, https://doi.org/10.4064/aa127-1-6. [] [] [] []
  24. I. Pink, Sz. Tengely. Full powers in arithmetic progressions. Publicationes Mathematicae Debrecen. Vol. 57, pg. 535-545, 2000, http://publi.math.unideb.hu/contents.php?szam=57. [] []
  25. I. Pink. On the Diophantine equation x2+(p1z1pszs)2=2ynx^2+(p_1^{z_1}\cdots p_s^{z_s})^2=2y^n. Publicationes Mathematicae Debrecen. Vol. 65, pg. 205-213, 2004, http://publi.math.unideb.hu/contents.php?szam=65. []
  26. F. S. Abu Muriefah, F. Luca, S. Siksek, Sz. Tengely. On the Diophantine equation x2+C=2ynx^2+C=2y^n. International Journal of Number Theory. Vol. 5, pg. 1117-1128, 2009, https://doi.org/10.1142/S1793042109002572. [] [] []
  27. H. Zhu, M. Le, A. Togbé. On the exponential Diophantine equation x²+p²ᵐ=2yⁿ. Bulletin of the Australian Mathematical Society. Vol. 86, pg. 303-314, 2012, https://doi.org/10.1017/S000497271200010X. [] [] [] []
  28. A. Bérczes, I. Pink. On generalized Lebesgue-Ramanujan-Nagell equations. Analele Ştiinţifice ale Universităţii “Ovidius” Constanţa, Seria Matematică. Vol. 22, pg. 51-71, 2014, https://doi.org/10.2478/auom-2014-0006. [] []
  29. M. Le, G. Soydan. A brief survey on the generalized Lebesgue-Ramanujan-Nagell equation. Surveys in Mathematics and its Applications. Vol. 15, pg. 473-523, 2020, https://www.utgjiu.ro/math/sma/v15/a15_20.html. [] []
  30. F. S. Abu Muriefah, Y. Bugeaud. The Diophantine equation x2+C=ynx^2+C=y^n: a brief overview. Revista Colombiana de Matemáticas. Vol. 40, pg. 31-37, 2006, https://zbmath.org/?q=an:1189.11019. []
  31. H. Zhu, M. Le. On some generalized Lebesgue-Nagell equations. Journal of Number Theory. Vol. 131, pg. 458-469, 2011, https://zbmath.org/?q=an:1219.11059. []
  32. H. Zhu. A note on the Diophantine equation x2+qm=y3x^2+q^m=y^3. Acta Arithmetica. Vol. 146, pg. 195-202, 2011, https://zbmath.org/?q=an:1219.11058. []
  33. H. Zhu, M. Le, G. Soydan. On the number of solutions of the Diophantine equation x2+2apb=y4x^2+2^ap^b=y^4. Mathematical Reports (Bucharest). Vol. 17(67), pg. 255-263, 2015, https://zbmath.org/?q=an:1374.11060. []
  34. İ. N. Cangül, M. Demirci, İ. İnam, F. Luca, G. Soydan. On the Diophantine equation x2+2a3b11c=ynx^2+2^a·3^b·11^c=y^n. Mathematica Slovaca. Vol. 63, pg. 647-659, 2013, https://arxiv.org/abs/1201.0730. []
  35. İ. N. Cangül, M. Demirci, F. Luca, Á. Pintér, G. Soydan. On the Diophantine equation x2+2a11b=ynx^2+2^a11^b=y^n. The Fibonacci Quarterly. Vol. 48, pg. 39-46, 2010, https://zbmath.org/?q=an:1219.11056. []
  36. M. Mignotte, B. M. M. de Weger. On the Diophantine equations x²+74=y⁵ and x²+86=y⁵. Glasgow Mathematical Journal. Vol. 38, pg. 77-85, 1996, https://doi.org/10.1017/S0017089500031293. []
  37. W. Ljunggren. On the Diophantine equation Cx²+D=2yⁿ. Mathematica Scandinavica. Vol. 18, pg. 69-86, 1966, https://eudml.org/doc/165942. [] [] [] []
  38. M.-G. Leu, G.-W. Li. The Diophantine equation 2x²+1=3ⁿ. Proceedings of the American Mathematical Society. Vol. 131, pg. 3643-3645, 2003, https://doi.org/10.1090/S0022-9939-03-07212-5. []
  39. Y. Bugeaud, T. N. Shorey. On the number of solutions of the generalized Ramanujan-Nagell equation. Journal für die reine und angewandte Mathematik. Vol. 539, pg. 55-74, 2001, https://doi.org/10.1515/crll.2001.079. []
  40. J. J. Bravo, P. Das, S. Guzmán Sánchez, S. Laishram. Powers in products of terms of Pell’s and Pell-Lucas sequences. International Journal of Number Theory. Vol. 11, pg. 1259-1274, 2015, https://doi.org/10.1142/S1793042115500682. []
  41. M. Newman, D. Shanks, H. C. Williams. Simple groups of square order and an interesting sequence of primes. Acta Arithmetica. Vol. 38, pg. 129-140, 1980/81, https://doi.org/10.4064/aa-38-2-129-140. []
  42. D. A. Cox. Primes of the form x²+ny²: Fermat, class field theory, and complex multiplication. John Wiley & Sons, 2nd Edition, 2013. [] []

LEAVE A REPLY

Please enter your comment!
Please enter your name here