Saturday, August 22, 2009

A Prized Quiz

Hi Guys, Today I was attending a lecture in the morning. There a question came to my mind. And I wanted to come up with a general answer. The question was :-

  • Let us take a number 'n', such that n>0.
  • Now make an n*n matrix.
  • Fill it with distinct numbers ranging between 1 and n^2. Every number used exactly one time.
  • The sum of elements of each individual row, sum of elements of each individual column and sum of elements of each individual diagonal must be same.

I wanted to solve it for any natural number.

Well I succeeded for odd numbers.

i.e. My algorithm works for 1,3,5,7,9,11,...,(2m+1) where m>=0

Now, my question is that, can u do it for even numbers?

You can solve this question for me in two different ways

  1. Sovle for any particular case, like n=4 or n=6 or so on.

Prize: Treat at Cafe.

Eligibility: Any JUITian can answer.

  1. Solve it for any general case n, where n>0 and divisible by 2.

Prize: Treat at Moksh or Paradise or Destination or any where in Simla/Solan.

Eligibility: Anyone can answer.

A Hint: The sum must be (n^3 + n) / 2

Mail all your answers at navdeep983879@gmail.com with subject as PRIZED QUIZ

Deadline: A week after the first correct answer is submitted (This will be updated as soon as I get correct answer).

Correct Answers Yet: None

Note: Write all Your queries in Comments Section.

No comments:

Post a Comment