Menu Close

How-many-ways-can-2018-be-expressed-as-the-sum-of-two-squares-




Question Number 110895 by Aina Samuel Temidayo last updated on 31/Aug/20
How many ways can 2018 be  expressed as the sum of two squares?
Howmanywayscan2018beexpressedasthesumoftwosquares?
Answered by ajfour last updated on 31/Aug/20
43^2 +13^2 =2018
432+132=2018
Answered by floor(10²Eta[1]) last updated on 31/Aug/20
y=(√(2018−x^2 ))⇒x<45 and y<45  x^2 +y^2 =2018⇒(x+y)^2 =2(1009+xy)  (x+y)^2  is even ⇒(x+y) is even.  suppose x and y are even  x=2a and y=2b  (2a+2b)^2 =2(1009+(2a)(2b))  ⇒2(a^2 +b^2 )=1009  but 1009 is not even so x and y can′t be even.  ⇒ x and y are odd.  gcd(x,y)=d⇒x=ds, y=dt, gcd(s, t)=1  d^2 (s^2 +t^2 )=2018  d^2 ∣2018⇒d^2 ∈{1, 2, 1009, 2018}⇒d=1  so x and y are coprimes   x,y∈(1,3,5,7,...,43)  with that you can try to solve the problem  by testing but i will continue to think  and try to get a better way
y=2018x2x<45andy<45x2+y2=2018(x+y)2=2(1009+xy)(x+y)2iseven(x+y)iseven.supposexandyareevenx=2aandy=2b(2a+2b)2=2(1009+(2a)(2b))2(a2+b2)=1009but1009isnotevensoxandycantbeeven.xandyareodd.gcd(x,y)=dx=ds,y=dt,gcd(s,t)=1d2(s2+t2)=2018d22018d2{1,2,1009,2018}d=1soxandyarecoprimesx,y(1,3,5,7,,43)withthatyoucantrytosolvetheproblembytestingbutiwillcontinuetothinkandtrytogetabetterway
Commented by Aina Samuel Temidayo last updated on 31/Aug/20
Thanks
Thanks
Answered by Rasheed.Sindhi last updated on 01/Sep/20
(i) unit-digits.  (ii)squares of unit-digits.  (iii)unit-digits of squares   [((  (i)),0,1,2,3,( 4),( 5),( 6),( 7),( 8),( 9)),(( (ii)),0,1,4,9,(16),(25),(36),(49),(64),(81)),(((iii)),0,1,4,9,( 6),( 5),( 6),( 9),( 4),( 1)) ]        is sum of two square numbers.  Hence its unit-digit(8) is made up  of sum of unit-digits of squares   Only two possibilities:  4+4=8 & 9+9=18  ^• 4 is square of  unit-digits: 2 & 8  ^• 9 is square of  unit-digits: 3 & 7  Search for the numbers is  narrow enough now: Only  numbers with units 2,8,3 & 7  So finally 3 is successful  candidate. If n is one possible  candidate for required numbers  other number N is              N=(√(2018−n))  provided that 2018−n is prefect  squre.  Finally 13^2 +43^2 =2018 only  solution.
(i)unitdigits.(ii)squaresofunitdigits.(iii)unitdigitsofsquares[(i)0123456789(ii)0149162536496481(iii)0149656941]issumoftwosquarenumbers.Henceitsunitdigit(8)ismadeupofsumofunitdigitsofsquaresOnlytwopossibilities:4+4=8&9+9=184issquareofunitdigits:2&89issquareofunitdigits:3&7Searchforthenumbersisnarrowenoughnow:Onlynumberswithunits2,8,3&7Sofinally3issuccessfulcandidate.IfnisonepossiblecandidateforrequirednumbersothernumberNisN=2018nprovidedthat2018nisprefectsqure.Finally132+432=2018onlysolution.
Commented by floor(10²Eta[1]) last updated on 01/Sep/20
cool!! with that and knowing that  the numbers are both odd helps a lot  because we just have to look for  the numbers(3, 7, 13, 17, 23, 27, 33, 37, 43)
cool!!withthatandknowingthatthenumbersarebothoddhelpsalotbecausewejusthavetolookforthenumbers(3,7,13,17,23,27,33,37,43)
Commented by Rasheed.Sindhi last updated on 01/Sep/20
Thanks floor sir!
Thanksfloorsir!

Leave a Reply

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