The smallest

Find the smallest two-digit positive integer that can be written as the sum of two distinct positive perfect squares in two different ways.

Note that 50 = 5 2 + 5 2 = 7 2 + 1 2 50 = 5^2 + 5^2= 7^2 + 1^2 is not allowed because 5 2 5^2 is used twice.


The answer is 65.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Patrick Corn
Jun 23, 2016

An integer n n is expressible as the sum of two squares if and only if it is of the form n = A B 2 , n = A B^2, where A A is divisible only by primes not congruent to 3 m o d 4 3 \bmod 4 and B B is divisible only by primes congruent to 3 m o d 4. 3 \bmod 4.

Writing A = 2 a p 1 a 1 p k a k , A = 2^a p_1^{a_1} \cdots p_k^{a_k}, the number of representations of n n as a sum of two squares is r 2 ( n ) = 4 ( a 1 + 1 ) ( a 2 + 1 ) ( ) ( a k + 1 ) . r_2(n) = 4(a_1+1)(a_2+1)(\cdots)(a_k+1). This formula (and the previous paragraph) comes from facts about Gaussian integers .

If n n is not a square or twice a square, then the number of essentially different representations of n n as a sum of two squares is r 2 ( n ) / 8 r_2(n)/8 (there are eight different ways to write a 2 + b 2 a^2+b^2 as the sum of two squares if a a and b b are nonzero and distinct, by switching a a and b b and/or applying negative signs to one or both of them).

To make this number equal to 2 , 2, we need ( a 1 + 1 ) ( a 2 + 1 ) = 4 , (a_1+1)(a_2+1) = 4, so setting a 1 = a 2 = 1 a_1=a_2=1 suggests taking n = 5 13 , n = 5 \cdot 13, which can indeed be written as 65 = 1 2 + 8 2 = 4 2 + 7 2 . 65 = 1^2+8^2 = 4^2+7^2.

It's clear that this is the smallest possibility for n n not equal to a square or twice a square, but there are only a few possibilities less than 65 65 which are a square or twice a square, and those can be spot-checked using the above formula.

(Yes, this is not the fastest solution, but it generalizes pretty well.)

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...