Home Profile Projects Articles

Answer: Another Putnam Problem (Dec 2, 2007)

Saturday, 8 of December , 2007 at 12:57 pm

Apparently, I bit off more than I could chew when tackling this question. I don’t have formal mathematical solution to this problem, but I will show you what I came up with.

Question: Determine the maximum value of m^2 + n^2, where m and n are integers in the range 1,2,…,1981 satisfying (n^2 - mn - m^2)^2 = 1.

Analysis: In an attempt to maximize m^2 + n^2, we should first investigate what values of m and n satisfy the constraints (n^2 - mn - m^2)^2 = 1 which can be reduced to n^2 - mn - m^2 = \pm 1. If we look for solutions to this equation for small values of m and n, you will find the following sequence:

(m,n) = (1,1), (1,2), (2,3)\ldots

The solution appears to be Fibonacci numbers. This would mean that if (m, n) are solutions then (n, m+n) would also be a solution. If we put (n, m+n) into the constraints, we can verify that all Fibonacci numbers are a solution.

(m+n)^2 - n(m+n) - n^2
m^2 + 2mn + n^2 - nm - n^2 -n^2
m^2 + nm - n^2 = - (n^2 -mn -m^2) = \pm 1

This shows that the following sequence is a solution to the given constraints:

(1,1), (1,2), (2,3), (3,5), (5,8), (8,13), (13,21), (21,34),
(34,55), (55,89), (89,144), (144,233),(233,377),(377,610),
(610,987),(987,1597),(1597,2584)\ldots (n-m,m),(m,n),(n,m+n)

The part that I wasn’t able to prove is that the Fibonacci numbers are the ONLY solution to the constraints. However, if they were, the function m^2 + n^2 would be maximized when (m,n) = (987,1597).

In order to prove that this was the correct solution, I wrote the following perl script:

$max_val = 0;
$max_m = 0;
$max_n = 0;
 
for ($m = 1; $m < 1982; $m++) {
   for ($n = 1; $n < 1982; $n++) {
      $val = $n*$n - $m*$n - $m*$m;
      $val = $val*$val;
 
      if($val == 1){
         $val = $m*$m + $n*$n;
 
         if($val > $max_val){
            $max_val = $val;
            $max_m = $m;
            $max_n = $n;
         }
      }
   }
}
 
print "Max Value: ".$max_val." m: ". $max_m." n: ".$max_n;

This script confirmed that the maximum value is when (m,n) = (987,1597)

$ perl find.pl
Max Value: 3524578 m: 987 n: 1597

Category: Answers, Putnam Problems

No Comments

No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> [tex]