{"id":1306,"date":"2026-07-26T21:08:00","date_gmt":"2026-07-26T21:08:00","guid":{"rendered":"https:\/\/yesrenee.com\/?p=1306"},"modified":"2026-07-26T21:08:02","modified_gmt":"2026-07-26T21:08:02","slug":"quadratic-residues","status":"publish","type":"post","link":"https:\/\/yesrenee.com\/?p=1306","title":{"rendered":"Quadratic residues"},"content":{"rendered":"\n<p class=\"has-blush-light-purple-gradient-background has-background\">We must have a wonderful gradient background here because square number remainder patterns are beautiful. When you square integers and reduce them modulo<em> n<\/em>, you don&#8217;t just get a random number. Insead, square numbers follow <strong>predictable patterns<\/strong>. These are called <em>quadratic residues.<\/em> Note the examples presented below.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Modulus<\/th><th>Possible square remainders<\/th><\/tr><\/thead><tbody><tr><td>                                      2<\/td><td>                                   0, 1<\/td><\/tr><tr><td>                                      3<\/td><td>                                   0, 1<\/td><\/tr><tr><td>                                      4<\/td><td>                                   0, 1<\/td><\/tr><tr><td>                                      5<\/td><td>                                 0, 1, 4<\/td><\/tr><tr><td>                                      6<\/td><td>                                0, 1, 3, 4<\/td><\/tr><tr><td>                                      7<\/td><td>                                0, 1, 2, 4<\/td><\/tr><tr><td>                                      8<\/td><td>                                  0, 1, 4<\/td><\/tr><tr><td>                                      9<\/td><td>                                 0, 1, 4, 7<\/td><\/tr><tr><td>                                      10<\/td><td>                             0, 1, 4, 5, 6, 9<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p class=\"has-blush-light-purple-gradient-background has-background\">Does it make sense? To help with your understanding, let&#8217;s pick a number and break it down. Modulo by 10 should be obvious- just find the ones digit- so let&#8217;s work with the digit 9. <\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Number<\/th><th>Square<\/th><th>Remainder modulo 9<\/th><\/tr><\/thead><tbody><tr><td>                         0<\/td><td>                         0<\/td><td>                         0<\/td><\/tr><tr><td>                         1<\/td><td>                         1<\/td><td>                         1<\/td><\/tr><tr><td>                         2<\/td><td>                         4<\/td><td>                         4<\/td><\/tr><tr><td>                         3<\/td><td>                         9<\/td><td>                         0<\/td><\/tr><tr><td>                         4<\/td><td>                        16<\/td><td>                         7<\/td><\/tr><tr><td>                         5<\/td><td>                        25<\/td><td>                         7<\/td><\/tr><tr><td>                         6<\/td><td>                        36<\/td><td>                         0<\/td><\/tr><tr><td>                         7<\/td><td>                        49<\/td><td>                         4<\/td><\/tr><tr><td>                         8<\/td><td>                        64<\/td><td>                         1<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p class=\"has-blush-light-purple-gradient-background has-background\">We see that the possible remainders, arranged from least to greatest, are 0, 2, 4 and 7. Now, fill out the same table with a different modulus. I would suggest 3, 6, 7 or 8 because they&#8217;re more challenging than numbers like 5 and 10.<\/p>\n\n\n\n<p class=\"has-pale-cyan-blue-color has-midnight-gradient-background has-text-color has-background has-link-color wp-elements-27ce26609b87c8c57046c368d14898e2\">In summary, these patterns are very useful for math, especially contest math and number theory related questions. These patterns lead to greater concepts such as the <em>Legendre Symbol<\/em>, and <em>quadratic reciprocity<\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We must have a wonderful gradient background here because square number remainder patterns are beautiful. When you square integers and reduce them modulo n, you don&#8217;t just get a random number. Insead, square numbers follow predictable patterns. These are called quadratic residues. Note the examples presented below. Modulus Possible square remainders 2 0, 1 3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[86,22,54,85,45],"class_list":["post-1306","post","type-post","status-publish","format-standard","hentry","category-daily","tag-aahwhileiwaswritingthisihadamosquitobitesadface","tag-math","tag-number-theory","tag-patterns","tag-pre-contest-review"],"_links":{"self":[{"href":"https:\/\/yesrenee.com\/index.php?rest_route=\/wp\/v2\/posts\/1306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yesrenee.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yesrenee.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yesrenee.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yesrenee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1306"}],"version-history":[{"count":2,"href":"https:\/\/yesrenee.com\/index.php?rest_route=\/wp\/v2\/posts\/1306\/revisions"}],"predecessor-version":[{"id":1308,"href":"https:\/\/yesrenee.com\/index.php?rest_route=\/wp\/v2\/posts\/1306\/revisions\/1308"}],"wp:attachment":[{"href":"https:\/\/yesrenee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yesrenee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yesrenee.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}