Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Magic constant equation

  1. Jun 3, 2010 #1
    Hey all. I'm trying to convert a series which gives me the magic constant for a magic square into an equation. How would I go about doing this?

    The series is:
    [tex] \mbox{S}=\left[ \frac{n+1}{2}+\left( n-1 \right)n \right] [/tex]
  2. jcsd
  3. Jun 3, 2010 #2
    What do you mean by the magic constant? The sum - so for a 3 x 3 from 1-9 you want 15?

    Simply sum 1 to n2, then divide by n?
  4. Jun 4, 2010 #3
    Yes, that's what I mean by the magic constant.

    Yes, I know that, but I'm trying to derive the formula from the series to prove that that is correct.

  5. Jun 4, 2010 #4
    I'm not sure that it is. Plugging 3 into your formula gives 10, to say nothing of what happens if n is even.

    What is the sum of 1 + 2 + 3 + ... a, where a is an integer?
  6. Jun 4, 2010 #5
    Let me get something clear.

    I'm trying to prove that the magic constant is

    [tex]M_{2}\left( n \right)\; =\; \frac{n\left( n^{2}+1 \right)}{2}[/tex]
  7. Jun 4, 2010 #6
    Ahh, that looks a lot more like the formula I've got.

    To explain where I'm coming from with my request for the sum of 1 + 2 + 3 + ... a (hint Gauss), if you sum these, then divide by the number of rows / colums you ought to get somewhere. I didn't want to say the sum of 1 to n2, in case it got confused as 1 + 4 + 9 etc.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook