Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

The New Coffee Room

  1. TNCR
  2. General Discussion
  3. Puzzle time - sums of two squares

Puzzle time - sums of two squares

Scheduled Pinned Locked Moved General Discussion
12 Posts 4 Posters 95 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • HoraceH Offline
    HoraceH Offline
    Horace
    wrote on last edited by Horace
    #3

    Missed this one the first time. So you're looking for the number of pairs of integers lying on the circle of radius sqrt(n) since a^2 + b^2 is distance from origin squared. The problem then becomes the number of times that circle passes through a point composed of two integers. By symmetry and restriction to positive integers you would only look at one eighth of the circle. Average number of times of an unbounded n implies this number does not increase without limit, and may be cyclical. I suspect the problem can be solved brute force by observing this cycle or this limit, but there is probably an elegant way to consider how many times this circle passes through integer vertexes.

    Actually I suppose the problem is asking for a function of n rather than a specific number. So it then becomes the number of times a circular arc of length (pi * 2 * sqrt(n))/8 passes through integer points on the plane.

    Education is extremely important.

    1 Reply Last reply
    • jon-nycJ Online
      jon-nycJ Online
      jon-nyc
      wrote on last edited by
      #4

      Really we're looking for the expected value across all the integers from 1 to a zillion.

      Only non-witches get due process.

      • Cotton Mather, Salem Massachusetts, 1692
      1 Reply Last reply
      • KlausK Online
        KlausK Online
        Klaus
        wrote on last edited by
        #5

        1d0126cc-405a-45be-a086-6e37ae73f017-image.png

        Hm, that number looks pretty familiar. A favorite of Larry's in fact.

        1 Reply Last reply
        • jon-nycJ Online
          jon-nycJ Online
          jon-nyc
          wrote on last edited by
          #6

          Yes, by way of that hint, this one collapses into the Gauss Circle Problem.

          Only non-witches get due process.

          • Cotton Mather, Salem Massachusetts, 1692
          1 Reply Last reply
          • Doctor PhibesD Online
            Doctor PhibesD Online
            Doctor Phibes
            wrote on last edited by
            #7

            Klaus and Jon doing math.

            The sums of two squares.

            I was only joking

            1 Reply Last reply
            • jon-nycJ Online
              jon-nycJ Online
              jon-nyc
              wrote on last edited by
              #8

              It’s kind of a cool result. It’s framed as a kind of number theory problem and the answer is a transcendental number associated with geometry.

              Only non-witches get due process.

              • Cotton Mather, Salem Massachusetts, 1692
              1 Reply Last reply
              • HoraceH Offline
                HoraceH Offline
                Horace
                wrote on last edited by
                #9

                It is a cool result. But I'm not sure there's any low-math, non-brute-force way to get there. The connection between sum of squares and a circle is not very far towards the answer.

                Education is extremely important.

                1 Reply Last reply
                • jon-nycJ Online
                  jon-nycJ Online
                  jon-nyc
                  wrote on last edited by
                  #10

                  Unless you recognize it as the Gauss Circle Problem, which has a well-known answer.

                  Only non-witches get due process.

                  • Cotton Mather, Salem Massachusetts, 1692
                  1 Reply Last reply
                  • jon-nycJ Online
                    jon-nycJ Online
                    jon-nyc
                    wrote on last edited by
                    #11

                    And I would add an intuitive answer.

                    Only non-witches get due process.

                    • Cotton Mather, Salem Massachusetts, 1692
                    1 Reply Last reply
                    • HoraceH Offline
                      HoraceH Offline
                      Horace
                      wrote on last edited by
                      #12

                      Yeah I guess the area thing would be intuitive and from there the circumference thing is also intuitive.

                      Education is extremely important.

                      1 Reply Last reply
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups