Jump to content
BrainDen.com - Brain Teasers
  • 0


Guest
 Share

Question

11 answers to this question

Recommended Posts

  • 0

oops I did: sums of squares are squares! we're looking for the average value of squares is a square: yeah,integer 337 yields a square avg = 38025.0, which is a square of 195

I did the same thing on my first try, haha.

Edited by mmiguel1
Link to comment
Share on other sites

  • 0

I did the same thing on my first try, haha.

that's such an awesome coincidence! I like these math puzzles because they give me a reason to write code in Ruby. Sounds like you actually do some mathematical figuring....

Link to comment
Share on other sites

  • 0

that's such an awesome coincidence! I like these math puzzles because they give me a reason to write code in Ruby. Sounds like you actually do some mathematical figuring....

Not really, haha.

I had known the formula for the sum of squares already and that it had n as a factor.

I wrote a little python script to find the first n that gives a perfect square using the modified formula. Ruby is great too though!

Edited by mmiguel1
Link to comment
Share on other sites

  • 0

Find the first integer n > 1 such that the average of

1^2, 2^2, 3^2, . . . , n^2

is itself a perfect square.

I have reduced the problem to trying to find a natural-number "n" such that:

(n^2)/3 + n/2 + 1/6 = m^2 (for a natural-number "m")

but I am stuck in trying to find an expression for the square-root of the LHS (so I can then find the least "m" which satisfies the equation).

Does anyone know how to do this?

Link to comment
Share on other sites

  • 0

I have reduced the problem to trying to find a natural-number "n" such that:

(n^2)/3 + n/2 + 1/6 = m^2 (for a natural-number "m")

but I am stuck in trying to find an expression for the square-root of the LHS (so I can then find the least "m" which satisfies the equation).

Does anyone know how to do this?

Computer! Lol

Write a program or use a spreadsheet to determine the square root for various n.

The first one that comes up as a whole number corresponds to your answer.

In python this will do the trick:

(replace ~ with spaces or tabs)

import math;

n=2;

while 1:

~m = math.sqrt((1/6.0)*(n+1)*(2*n+1));

~if m == int(m):

~~print n, str(m)+"^2";

~~break;

~n += 1;

Edited by mmiguel1
Link to comment
Share on other sites

  • 0

Computer! Lol

Write a program or use a spreadsheet to determine the square root for various n.

The first one that comes up as a whole number corresponds to your answer.

In python this will do the trick:

(replace ~ with spaces or tabs)

import math;

n=2;

while 1:

~m = math.sqrt((1/6.0)*(n+1)*(2*n+1));

~if m == int(m):

~~print n, str(m)+"^2";

~~break;

~n += 1;

Yeah, computer programs are good for solving problems... But puzzles are meant to be solved using logic, deduction, and all that jazz... I was wanting to find the answer using logic alone, not brute force = ) so my question still stands. Thanks for your response though, it would of been helpful otherwise.

Does OP know how to solve this puzzle?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...