Legendre's three-square theorem

In mathematics, Legendre's three-square theorem states that a natural number can be represented as the sum of three squares of integers

if and only if n is not of the form for nonnegative integers a and b.

Distances between vertices of a double unit cube are square roots of the first six natural numbers due to the Pythagorean theorem (√7 is not possible due to Legendre's three-square theorem)

The first numbers that cannot be expressed as the sum of three squares (i.e. numbers that can be expressed as ) are

7, 15, 23, 28, 31, 39, 47, 55, 60, 63, 71 ... (sequence A004215 in the OEIS).
a
b
0 1 2
0 7 28 112
1 15 60 240
2 23 92 368
3 31 124 496
4 39 156 624
5 47 188 752
6 55 220 880
7 63 252 1008
8 71 284 1136
9 79 316 1264
10 87 348 1392
11 95 380 1520
12 103 412 1648
Unexpressible values
up to 100 are in bold

History

Pierre de Fermat gave a criterion for numbers of the form 8a + 1 and 8a + 3 to be sums of a square plus twice another square, but did not provide a proof.[1] N. Beguelin noticed in 1774[2] that every positive integer which is neither of the form 8n + 7, nor of the form 4n, is the sum of three squares, but did not provide a satisfactory proof.[3] In 1796 Gauss proved his Eureka theorem that every positive integer n is the sum of 3 triangular numbers; this is equivalent to the fact that 8n + 3 is a sum of three squares. In 1797 or 1798 A.-M. Legendre obtained the first proof of his 3 square theorem.[4] In 1813, A. L. Cauchy noted[5] that Legendre's theorem is equivalent to the statement in the introduction above. Previously, in 1801, Gauss had obtained a more general result,[6] containing Legendre's theorem of 1797–8 as a corollary. In particular, Gauss counted the number of solutions of the expression of an integer as a sum of three squares, and this is a generalisation of yet another result of Legendre,[7] whose proof is incomplete. This last fact appears to be the reason for later incorrect claims according to which Legendre's proof of the three-square theorem was defective and had to be completed by Gauss.[8]

With Lagrange's four-square theorem and the two-square theorem of Girard, Fermat and Euler, the Waring's problem for k = 2 is entirely solved.

Proofs

The "only if" of the theorem is simply because modulo 8, every square is congruent to 0, 1 or 4. There are several proofs of the converse (besides Legendre's proof). One of them is due to J. P. G. L. Dirichlet in 1850, and has become classical.[9] It requires three main lemmas:

Relationship to the four-square theorem

This theorem can be used to prove Lagrange's four-square theorem, which states that all natural numbers can be written as a sum of four squares. Gauss[10] pointed out that the four squares theorem follows easily from the fact that any positive integer that is 1 or 2 mod 4 is a sum of 3 squares, because any positive integer not divisible by 4 can be reduced to this form by subtracting 0 or 1 from it. However, proving the three-square theorem is considerably more difficult than a direct proof of the four-square theorem that does not use the three-square theorem. Indeed, the four-square theorem was proved earlier, in 1770.

See also

Notes

  1. ^ "Fermat to Pascal" (PDF). September 25, 1654. Archived (PDF) from the original on July 5, 2017.
  2. ^ Nouveaux Mémoires de l'Académie de Berlin (1774, publ. 1776), pp. 313–369.
  3. ^ Leonard Eugene Dickson, History of the theory of numbers, vol. II, p. 15 (Carnegie Institute of Washington 1919; AMS Chelsea Publ., 1992, reprint).
  4. ^ A.-M. Legendre, Essai sur la théorie des nombres, Paris, An VI (1797–1798), p. 202 and pp. 398–399.
  5. ^ A. L. Cauchy, Mém. Sci. Math. Phys. de l'Institut de France, (1) 14 (1813–1815), 177.
  6. ^ C. F. Gauss, Disquisitiones Arithmeticae, Art. 291 et 292.
  7. ^ A.-M. Legendre, Hist. et Mém. Acad. Roy. Sci. Paris, 1785, pp. 514–515.
  8. ^ See for instance: Elena Deza and M. Deza. Figurate numbers. World Scientific 2011, p. 314 [1]
  9. ^ See for instance vol. I, parts I, II and III of : E. Landau, Vorlesungen über Zahlentheorie, New York, Chelsea, 1927. Second edition translated into English by Jacob E. Goodman, Providence RH, Chelsea, 1958.
  10. ^ Gauss, Carl Friedrich (1965), Disquisitiones Arithmeticae, Yale University Press, p. 342, section 293, ISBN 0-300-09473-6

Read other articles:

1999 Japanese mecha anime series ∀ GundamCover art for Turn A Gundam Blu-ray Box I featuring the titular mecha and three of the main characters, Loran Cehack, Dianna Soriel, and her lookalike Kihel Heim∀ガンダム(Tān Ē Gandamu)GenreMechaCreated byHajime YatateYoshiyuki Tomino Anime television seriesDirected byYoshiyuki TominoProduced byYoshihiro SuzukiHideyuki TomiokaWritten byAi OtaHiroyuki HoshiyamaIchirō ŌkouchiJirō TakayamaKatsuhiko ChibaMinoru YokitaniMiya As…

World's first long-range ballistic missile V-2 redirects here. For other uses, see V2. V2 Peenemünde Museum replica of V2TypeSingle-stage ballistic missilePlace of originNazi GermanyService historyIn service1944–1952Used by Wehrmacht SS Post-war: United Kingdom United States Soviet Union Production historyDesignerPeenemünde Army Research CenterManufacturerMittelwerk GmbHUnit cost January 1944: 100,000 RM March 1945: 50,000 RM[1] Produced 16 March 1942 &#…

For the functional constituency, see Heung Yee Kuk (constituency). Heung Yee Kuk鄉議局Emblem of the Heung Yee KukHeung Yee Kuk Building in Shek Mun.Agency overviewFormed1926; 98 years ago (1926)Headquarters30 On Muk Street, Shek Mun, Sha Tin, NTAgency executivesKenneth Lau, ChairmanCheung Hok-ming and Daniel Lam, Vice-ChairmenWebsitehyknt.org Heung Yee KukTraditional Chinese鄉議局Simplified Chinese乡议局Literal meaningRural CouncilTranscriptionsStandard MandarinHa…

Voce principale: The Good Wife. La seconda stagione della serie televisiva The Good Wife, composta da 23 episodi, viene trasmessa sul canale statunitense CBS dal 28 settembre 2010[1] al 17 maggio 2011. La stagione ha debuttato in prima visione in lingua italiana nella Svizzera italiana su RSI LA1 il 26 gennaio 2011; l'emittente svizzera ha trasmesso i primi undici episodi fino al 6 aprile 2011, mentre i restanti dodici episodi sono stati trasmessi, sempre in prima TV, dal 16 novembre 201…

L'Aquila - Grandi speranzePaeseItalia Anno2019 Formatoserie TV Generedramma familiare Stagioni1 Episodi12 Durata50 min (episodio) Lingua originaleitaliano Rapporto16:9 HD CreditiIdeatoreStefano Grasso RegiaMarco Risi SoggettoStefano Grasso e Doriana Leondeff SceneggiaturaStefano Grasso e Doriana Leondeff Interpreti e personaggi Donatella Finocchiaro: Silvia Merli Giorgio Tirabassi: Gianni Fiumani Giorgio Marchesi: Franco Basile Luca Barbareschi: Riccardo De Angelis Valentina Lodovini: Elena Fium…

Cyprus Cup 2008 Competizione Cyprus Cup Sport Calcio Edizione 1ª Date 5 - 12 marzo 2008 Luogo  Cipro Partecipanti 6 Risultati Vincitore Canada(1º titolo) Secondo Stati Uniti Under-20 Terzo Giappone Quarto Paesi Bassi Statistiche Miglior marcatore Christine Sinclair (5) Incontri disputati 12 Gol segnati 37 (3,08 per incontro) Cronologia della competizione 2009 Manuale La Cyprus Cup 2008 è stata la prima edizione della Cyprus Cup, torneo a inviti rivolto a rappresentative Naz…

Questa voce o sezione sull'argomento vescovi italiani non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti del progetto di riferimento. Questa voce o sezione sull'argomento vescovi non è ancora formattata secondo gli standard. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Ulisse Giuseppe Gozzadinicardinale di Santa Rom…

British comic book story Death WishThe cover to the Rebellion Developments collected edition Death Wish - Best Wishes, using a split face portrait to show Blake Edmonds' mask and scarred face. Art by Robin Smith and Vanyo.First appearanceSpeed (23 February 1980)Publication informationPublisherIPC MagazinesFleetway PublicationsRebellion DevelopmentsScheduleWeekly Title(s)Speed23 February to 25 October 1980Speed Annual1980 to 1981Tiger1 November 1980 to 30 March 1985Tiger Annual1983 to 1987Eagle6 …

Halaman ini berisi artikel tentang novel. Untuk film, lihat The Hunger Games (film). Untuk seri novel, lihat Trilogi The Hunger Games. Sampul edisi pertama Amerika UtaraPengarangSuzanne CollinsPerancang sampulTim O'BrienNegaraAmerika SerikatBahasaInggrisSeriTrilogi The Hunger GamesGenrePetualanganDistopiaFiksi ilmiah[1]AksiDiterbitkan14 September 2008PenerbitScholastic PressJenis mediaCetak (sampul keras, sampul biasa)Halaman374OCLC181516677Diikuti olehCatching Fire  …

  提示:此条目页的主题不是中國—瑞士關係。   關於中華民國與「瑞」字國家的外交關係,詳見中瑞關係 (消歧義)。 中華民國—瑞士關係 中華民國 瑞士 代表機構駐瑞士台北文化經濟代表團瑞士商務辦事處代表代表 黃偉峰 大使[註 1][4]處長 陶方婭[5]Mrs. Claudia Fontana Tobiassen 中華民國—瑞士關係(德語:Schweizerische–republik china Beziehungen、法語:…

李光耀逝世及葬礼李光耀(1923年-2015年)日期2015年3月23日-2015年3月29日地点新加坡斯里淡马锡(私人守灵)新加坡国会大厦(民众瞻仰)新加坡国立大学文化中心(国葬)万礼火葬场(英语:Mandai Crematorium and Columbarium)(火葬)网站www.rememberingleekuanyew.sg 2015年3月23日凌晨3時18分(新加坡標準時間),新加坡建国后首任总理、前內閣资政和执政人民行动党首任秘书长李光耀因…

Softball Tournament 2023 Little League Softball World SeriesTournament detailsDatesAugust 6–August 13Teams12Final positionsChampions Massapequa, New York Massapequa International LLRunner-up Winterville, North Carolina Pitt County Girls Softball LL Stallings Stadium in Greenville served as host The 2023 Little League Softball World Series was held in Greenville, North Carolina from August 6 to August 13, 2023.[1] Teams Each team that competed in the tournament came out of one of 12 qua…

ヨハネス12世 第130代 ローマ教皇 教皇就任 955年12月16日教皇離任 964年5月14日先代 アガペトゥス2世次代 レオ8世個人情報出生 937年スポレート公国(中部イタリア)スポレート死去 964年5月14日 教皇領、ローマ原国籍 スポレート公国親 父アルベリーコ2世(スポレート公)、母アルダその他のヨハネステンプレートを表示 ヨハネス12世(Ioannes XII、937年 - 964年5月14日)は、ロー…

جائزة المملكة العربية السعودية للإدارة البيئيةمعلومات عامةمنحت لـ الممارسات البيئية السليمةالبلد المملكة العربية السعوديةمقدمة من الهيئة العامة للأرصاد وحماية البيئةالمكان موقع الهيئةأول جائزة 2004موقع الويب https://www.ksaaem.org/ar/تعديل - تعديل مصدري - تعديل ويكي بيانات جائزة الم…

Australia Terbuka 2020Tanggal20 Januari – 2 Februari 2020Edisike-108Era Terbuka (ke-52)KategoriGrand SlamPeserta128 pemain tunggal, 64 pasangan ganda dan 32 ganda campuranHadiah uangA$71.000.000Jenis lap.Keras (Plexicushion)LokasiMelbourne, Victoria, AustraliaTempatMelbourne ParkJuaraTunggal Putra Novak DjokovicTunggal Putri Sofia KeninGanda Putra Rajeev Ram / Joe SalisburyGanda Putri Tímea Babos / Kristina MladenovicGanda Campuran Barbora Krejčíková / Nikola MektićKursi roda tunggal putr…

المسار الوسطي الطرفي (بالإنجليزية: Mesolimbic pathway)‏ هو مسار دوباميني الفعل في الدماغ.[1] يربط بين المنطقة السقيفية البطنية في وسط الدماغ والجسم المخطط في العقد القاعدية من الدماغ الأمامي. يشمل الجسم المخطط كلا من النواة المتكئة والحديبة الشمية.[2] ينظِم إفراز الدوبامين من…

NFL team season 1995 Denver Broncos seasonOwnerPat BowlenPresidentPat BowlenGeneral managerJohn Beake and Mike ShanahanHead coachMike ShanahanOffensive coordinatorGary KubiakDefensive coordinatorGreg RobinsonHome fieldMile High StadiumResultsRecord8–8Division place4th AFC WestPlayoff finishDid not qualifyUniform ← 1994 Broncos seasons 1996 → The 1995 Denver Broncos season was the franchise's 26th season in the National Football League, and the 36th overall. The seaso…

2000 novel by Saddam Hussein Zabibah and the King Cover of the English editionOriginal titleزبيبة والملكTranslatorRobert LawrenceIllustratorJonathon Earl BowserCover artistJonathon Earl BowserCountryBa'athist IraqLanguageMesopotamian ArabicGenreallegorySet inTikrit, 7th–8th century CEPublication date2000Published in English2004Media typePrint: paperbackISBN1-58939-585-9Dewey Decimal892.737 Zabibah and the King (Arabic: زبيبة والملك Zabībah wal-Ma…

Machine performance art group SRL Performance in Los Angeles, 2006 Survival Research Laboratories (SRL) is an American performance art group that pioneered the genre of large-scale machine performance.[1][2][3] Founded in 1978 by Mark Pauline in San Francisco, the group is known in particular for their performances where custom-built machines, often robotic, compete to destroy each other.[4][5] The performances, described by one critic as noisy, violent an…

Marguerite I, Comtesse Flandria Marguerite I dari Alsace (wafat 15 November 1194) merupakan seorang Comtesse Flandria dari tahun 1191 sampai kematiannya. Sejarah Ia adalah putri Thierry dari Alsace dan Sibylle dari Anjou, dan ahli waris saudaranya yang tidak memiliki keturunan, Philippe I, Comte Flandria. Keluarga Pada tahun 1160 ia menikah dengan Raoul II, Comte Vermandois dan Valois. Ia meninggal karena terjangkit penyakit kusta pada tahun 1167 tanpa keturunan. Pada tahun 1169 ia menikah denga…