Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • 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
Code Project
  1. Home
  2. General Programming
  3. Algorithms
  4. Magics of 4

Magics of 4

Scheduled Pinned Locked Moved Algorithms
question
7 Posts 6 Posters 2 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    shiraztk
    wrote on last edited by
    #1

    Hi Just found some wonderful properties of number 4. 1. 4 is the only perfect square whose reciprocal is also a perfect square. 2. Any perfect square when devided by 4 gives a reminder of either 1 or 0. Is this something already known?

    The Best Religion is Science. Once you understand it, you will know God.

    M D C C 4 Replies Last reply
    0
    • S shiraztk

      Hi Just found some wonderful properties of number 4. 1. 4 is the only perfect square whose reciprocal is also a perfect square. 2. Any perfect square when devided by 4 gives a reminder of either 1 or 0. Is this something already known?

      The Best Religion is Science. Once you understand it, you will know God.

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      Zainu wrote:

      Is this something already known?

      probably for a few hundred years.


      Maximilien Lincourt Your Head A Splode - Strong Bad

      1 Reply Last reply
      0
      • S shiraztk

        Hi Just found some wonderful properties of number 4. 1. 4 is the only perfect square whose reciprocal is also a perfect square. 2. Any perfect square when devided by 4 gives a reminder of either 1 or 0. Is this something already known?

        The Best Religion is Science. Once you understand it, you will know God.

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Zainu wrote:

        Is this something already known?

        Technically, yes, I'm fairly sure that it is known by at least one person. I'm sure others will claim knowledge of it, too. Whether they do or not, you'll never know for sure.


        "A good athlete is the result of a good and worthy opponent." - David Crow

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        1 Reply Last reply
        0
        • S shiraztk

          Hi Just found some wonderful properties of number 4. 1. 4 is the only perfect square whose reciprocal is also a perfect square. 2. Any perfect square when devided by 4 gives a reminder of either 1 or 0. Is this something already known?

          The Best Religion is Science. Once you understand it, you will know God.

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          Zainu wrote:

          4 is the only perfect square whose reciprocal is also a perfect square.

          hence 1/4 is a perfect square while, for instance, 1/9 not? :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

          1 Reply Last reply
          0
          • S shiraztk

            Hi Just found some wonderful properties of number 4. 1. 4 is the only perfect square whose reciprocal is also a perfect square. 2. Any perfect square when devided by 4 gives a reminder of either 1 or 0. Is this something already known?

            The Best Religion is Science. Once you understand it, you will know God.

            C Offline
            C Offline
            cp9876
            wrote on last edited by
            #5

            Sounds like you are just discovering the magic of Number Theory, you can find lots of interesting resources on the web. I'm not sure what you are implying with (1), but (2) is very well known. 0 and 1 are called the quadratic residues mod 4. Some other examples, the same thing is true mod 3, but in mod 8 the residues are 0,1,4.


            Peter "Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

            S 1 Reply Last reply
            0
            • C cp9876

              Sounds like you are just discovering the magic of Number Theory, you can find lots of interesting resources on the web. I'm not sure what you are implying with (1), but (2) is very well known. 0 and 1 are called the quadratic residues mod 4. Some other examples, the same thing is true mod 3, but in mod 8 the residues are 0,1,4.


              Peter "Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

              S Offline
              S Offline
              shiraztk
              wrote on last edited by
              #6

              Hi all Yes, you can find a whole lot here http://mathworld.wolfram.com/QuadraticResidue.html Regards

              The Best Religion is Science. Once you understand it, you will know God.

              P 1 Reply Last reply
              0
              • S shiraztk

                Hi all Yes, you can find a whole lot here http://mathworld.wolfram.com/QuadraticResidue.html Regards

                The Best Religion is Science. Once you understand it, you will know God.

                P Offline
                P Offline
                Paul Conrad
                wrote on last edited by
                #7

                Mathworld is a great website, alot of good stuff there :)

                "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                1 Reply Last reply
                0
                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
                • World
                • Users
                • Groups