Menu Close

p-q-P-Use-prime-number-p-q-to-find-all-prime-number-represented-by-p-q-q-p-




Question Number 221270 by SdC355 last updated on 29/May/25
p,q∈P      Use prime number p,q to find all prime number   represented by p^q +q^p
$${p},{q}\in\mathbb{P}\: \\ $$$$\: \\ $$$$\mathrm{Use}\:\mathrm{prime}\:\mathrm{number}\:{p},{q}\:\mathrm{to}\:\mathrm{find}\:\mathrm{all}\:\mathrm{prime}\:\mathrm{number}\: \\ $$$$\mathrm{represented}\:\mathrm{by}\:{p}^{{q}} +{q}^{{p}} \\ $$
Answered by Frix last updated on 29/May/25
n∈P∧n≠2 ⇔ 2∤n  n=p^q +q^p ∧2∤n ⇔ p=2  n=2^q +q^2     q=3 ⇒ n=17∈P    All other primes are of the form q=6k±1  n=2^(6k±1) +(6k±1)^2 =2^(6k±1) +1+12k(3k±1)  Obviously 3∣(12k(3k±1))  3∣2^(6k±1) +1 because 2^(2m+1) ≡2mod 3  ⇒  no other solution
$${n}\in\mathbb{P}\wedge{n}\neq\mathrm{2}\:\Leftrightarrow\:\mathrm{2}\nmid{n} \\ $$$${n}={p}^{{q}} +{q}^{{p}} \wedge\mathrm{2}\nmid{n}\:\Leftrightarrow\:{p}=\mathrm{2} \\ $$$${n}=\mathrm{2}^{{q}} +{q}^{\mathrm{2}} \\ $$$$ \\ $$$${q}=\mathrm{3}\:\Rightarrow\:{n}=\mathrm{17}\in\mathbb{P} \\ $$$$ \\ $$$$\mathrm{All}\:\mathrm{other}\:\mathrm{primes}\:\mathrm{are}\:\mathrm{of}\:\mathrm{the}\:\mathrm{form}\:{q}=\mathrm{6}{k}\pm\mathrm{1} \\ $$$${n}=\mathrm{2}^{\mathrm{6}{k}\pm\mathrm{1}} +\left(\mathrm{6}{k}\pm\mathrm{1}\right)^{\mathrm{2}} =\mathrm{2}^{\mathrm{6}{k}\pm\mathrm{1}} +\mathrm{1}+\mathrm{12}{k}\left(\mathrm{3}{k}\pm\mathrm{1}\right) \\ $$$$\mathrm{Obviously}\:\mathrm{3}\mid\left(\mathrm{12}{k}\left(\mathrm{3}{k}\pm\mathrm{1}\right)\right) \\ $$$$\mathrm{3}\mid\mathrm{2}^{\mathrm{6}{k}\pm\mathrm{1}} +\mathrm{1}\:\mathrm{because}\:\mathrm{2}^{\mathrm{2}{m}+\mathrm{1}} \equiv\mathrm{2mod}\:\mathrm{3} \\ $$$$\Rightarrow \\ $$$$\mathrm{no}\:\mathrm{other}\:\mathrm{solution} \\ $$

Leave a Reply

Your email address will not be published. Required fields are marked *