Question and Answers Forum

All Questions      Topic List

Number Theory Questions

Previous in All Question      Next in All Question      

Previous in Number Theory      Next in Number Theory      

Question Number 27936 by Tinkutara last updated on 17/Jan/18

Commented by Rasheed.Sindhi last updated on 19/Jan/18

p^2 +7pq+q^2 =n^2   ; n∈Z  p^2 +7pq+q^2 −n^2 =0  p=((−7q±(√(49q^2 −4(q^2 −n^2 ))))/2)     =((−7q±(√(45q^2 +4n^2 )))/2)   45q^2 +4n^2  is  necessarily perfect square   Let 45q^2 +4n^2 =m^2     q^2 =((m^2 −4n^2 )/(45))=(((m−2n)(m+2n))/(3^2 .5))  possible cases of writing q^2 as product  of two factors:         q^2  =((m−2n)/3)×((m+2n)/(15)) .......(i)           q^2  =((m−2n)/9)×((m+2n)/5).........(ii)            q^2  =((m−2n)/(15))×((m+2n)/3) ........(iii)           q^2  =((m−2n)/(45))×((m+2n)/1) .......(iv)           q^2  =((m−2n)/1)×((m+2n)/(45))........(v)      (i)q^2 = ((m−2n)/3)×((m+2n)/(15))  As q is prime so there are 3 possible  cases:   Case-1  q=((m−2n)/3)=((m+2n)/(15))                     15m−30n=3m+6n            m=3n                q=(n/3)⇒n=3 ⇒q=1∉P               n=6⇒q=2    p=((−7q±(√(45q^2 +4n^2 )))/2)            p=((−7(2)±(√(45(2)^2 +4(6)^2 )))/2)    p=((−21±(√(180+144)))/2)=((−21±18)/2)∉P   Case-2  ((m−2n)/3)=1∧ q^2 =((m+2n)/(15))                     m=3+2n⇒q^2 =((3+4n)/(15))                4n+3≡0(mod 15)                4n≡12(mod 15)                n≡3(mod 15)   n=3,18,33,48,...93      q=3       q=5   Case-3  q^2 =((m−2n)/3)∧ ((m+2n)/(15))=1                 ⋮

p2+7pq+q2=n2;nZp2+7pq+q2n2=0p=7q±49q24(q2n2)2=7q±45q2+4n2245q2+4n2isnecessarilyperfectsquareLet45q2+4n2=m2q2=m24n245=(m2n)(m+2n)32.5possiblecasesofwritingq2asproductoftwofactors:q2=m2n3×m+2n15.......(i)q2=m2n9×m+2n5.........(ii)q2=m2n15×m+2n3........(iii)q2=m2n45×m+2n1.......(iv)q2=m2n1×m+2n45........(v)(i)q2=m2n3×m+2n15Asqisprimesothereare3possiblecases:Case1q=m2n3=m+2n1515m30n=3m+6nm=3nq=n3n=3q=1Pn=6q=2p=7q±45q2+4n22p=7(2)±45(2)2+4(6)22p=21±180+1442=21±182PCase2m2n3=1q2=m+2n15m=3+2nq2=3+4n154n+30(mod15)4n12(mod15)n3(mod15)n=3,18,33,48,...93q=3q=5Case3q2=m2n3m+2n15=1

Answered by Rasheed.Sindhi last updated on 17/Jan/18

Let p^2 +7pq+q^2 =n^2  ;  n∈Z        p^2 +7pq+q^2 −n^2 =0        p=((−7q±(√(49q^2 −4(q^2 −n^2 ))))/2)        p=((−7q±(√(45q^2 +4n^2 )))/2)  45q^2 +4n^2  is necessarily perfect square  Let 45q^2 +4n^2 =m^2   ;m∈Z           45q^2 =m^2 −4n^2            45q^2 =(m−2n)(m+2n)           3^2 .5.q^2 =(m−2n)(m+2n)  Possible cases:   •m−2n=3⇒m+2n=15q^2      m=2n+3⇒(2n+3)+2n=15q^2      q^2 =((4n+3)/(15)) ⇒15∣(4n+3)          4n+3≡0(mod 15)          4n≡−3+15(mod 15)            n≡3(mod15)     n=3,18,33,48,....  But we need the value of n for  which ((4n+3)/(15)) is perfect square of   any prime.Testing the values one  by one we see that n=93 fulfill our  criteria. ((4(93)+3)/(15))=((375)/(15))=25               ∴q=5  But for q=5      p=((−7(5)±(√(45(5)^2 +4(93)^2 )))/2)=77∉P  •m−2n=5⇒m+2n=9q^2   •m−2n=9⇒m+2n=5q^2   •m−2n=15⇒m+2n=3q^2   •m−2n=3q⇒m+2n=15q  •m−2n=5q⇒m+2n=9q  •m−2n=9q⇒m+2n=5q  •m−2n=15q⇒m+2n=3q  •m−2n=3q^2 ⇒m+2n=15  •m−2n=5q^2 ⇒m+2n=9  •m−2n=9q^2 ⇒m+2n=5  •m−2n=15q^2 ⇒m+2n=3  Continue

Letp2+7pq+q2=n2;nZp2+7pq+q2n2=0p=7q±49q24(q2n2)2p=7q±45q2+4n2245q2+4n2isnecessarilyperfectsquareLet45q2+4n2=m2;mZ45q2=m24n245q2=(m2n)(m+2n)32.5.q2=(m2n)(m+2n)Possiblecases:m2n=3m+2n=15q2m=2n+3(2n+3)+2n=15q2q2=4n+31515(4n+3)4n+30(mod15)4n3+15(mod15)n3(mod15)n=3,18,33,48,....Butweneedthevalueofnforwhich4n+315isperfectsquareofanyprime.Testingthevaluesonebyoneweseethatn=93fulfillourcriteria.4(93)+315=37515=25q=5Butforq=5p=7(5)±45(5)2+4(93)22=77Pm2n=5m+2n=9q2m2n=9m+2n=5q2m2n=15m+2n=3q2m2n=3qm+2n=15qm2n=5qm+2n=9qm2n=9qm+2n=5qm2n=15qm+2n=3qm2n=3q2m+2n=15m2n=5q2m+2n=9m2n=9q2m+2n=5m2n=15q2m+2n=3Continue

Answered by mrW2 last updated on 18/Jan/18

If p and q may be equal, then every prime  is a solution, i.e. p=q=1,2,3,5,7,...    If p and q should be distinct, then there is  only one solution:  p=3, q=11 or p=11, q=3.

Ifpandqmaybeequal,theneveryprimeisasolution,i.e.p=q=1,2,3,5,7,...Ifpandqshouldbedistinct,thenthereisonlyonesolution:p=3,q=11orp=11,q=3.

Commented by mrW2 last updated on 18/Jan/18

Intuitively we can see, if q=p we get  p^2 +7pq+q^2 =9p^2 =(3p)^2 =n^2   this is always true for every prime p.  But we can also get this result below  without using intuition.    p^2 +7pq+q^2 =n^2   ⇒p^2 +2pq+q^2 +5pq=n^2   ⇒n^2 −(p+q)^2 =5pq  ⇒(n−p−q)(n+p+q)=5pq    since p and q are primes, there are  only following cases:  case 1:   { ((n−p−q=5p)),((n+p+q=q)) :}  ⇒5p+2p+2q=q  ⇒7p=−q<0 ⇒impossible  case 2:   { ((n−p−q=5q)),((n+p+q=p)) :}  ⇒as above impossible    case 3:   { ((n−p−q=p)),((n+p+q=5q)) :}  ⇒p+2p+2q=5q  ⇒p=q=every prime  case 4:   { ((n−p−q=q)),((n+p+q=5p)) :}  ⇒q+2p+2q=5p  ⇒q=p=every prime    case 5:   { ((n−p−q=5)),((n+p+q=pq)) :}  ⇒5+2p+2q=pq  ⇒q=((2p+5)/(p−2))=2+(9/(p−2))  ⇒p=3, q=11  ⇒p=5, q=5  ⇒p=11, q=3  case 6:   { ((n−p−q=pq)),((n+p+q=5)) :}  ⇒pq+2p+2q=5  ⇒q=((5−2p)/(p+2))=(9/(p+2))−2  ⇒p=1, q=1  ⇒p=7, q=−1<0 ⇒impossible    Therefore the solutions are:  p=q=every prime  p=3, q=11  p=11, q=3

Intuitivelywecansee,ifq=pwegetp2+7pq+q2=9p2=(3p)2=n2thisisalwaystrueforeveryprimep.Butwecanalsogetthisresultbelowwithoutusingintuition.p2+7pq+q2=n2p2+2pq+q2+5pq=n2n2(p+q)2=5pq(npq)(n+p+q)=5pqsincepandqareprimes,thereareonlyfollowingcases:case1:{npq=5pn+p+q=q5p+2p+2q=q7p=q<0impossiblecase2:{npq=5qn+p+q=pasaboveimpossiblecase3:{npq=pn+p+q=5qp+2p+2q=5qp=q=everyprimecase4:{npq=qn+p+q=5pq+2p+2q=5pq=p=everyprimecase5:{npq=5n+p+q=pq5+2p+2q=pqq=2p+5p2=2+9p2p=3,q=11p=5,q=5p=11,q=3case6:{npq=pqn+p+q=5pq+2p+2q=5q=52pp+2=9p+22p=1,q=1p=7,q=1<0impossibleThereforethesolutionsare:p=q=everyprimep=3,q=11p=11,q=3

Commented by mrW2 last updated on 18/Jan/18

Thank you sir!  But how did you write this?

Thankyousir!Buthowdidyouwritethis?

Commented by Tinkutara last updated on 18/Jan/18

ᝨℍᗅℕK ℽᝪႮ Ꮙℰℛℽ ℳႮℂℍ Տⅈℛ��! ⅈ ℊᝪᝨ ᝨℍℰ ᗅℕՏᗯℰℛ.

Commented by Rasheed.Sindhi last updated on 18/Jan/18

��������������  ������ !

Commented by Rasheed.Sindhi last updated on 18/Jan/18

Sir this is a plaintext comment.  I have pasted it from ′ stylish text ′   app.

Sirthisisaplaintextcomment.Ihavepasteditfromstylishtextapp.

Commented by mrW2 last updated on 18/Jan/18

����

Terms of Service

Privacy Policy

Contact: info@tinkutara.com