Skip over navigation
Cambridge University Faculty of Mathematics NRich logo
menu search
  • Teachers expand_more
    • Early years
    • Primary
    • Secondary
    • Post-16
    • Events
    • Professional development
  • Students expand_more
    • Primary
    • Secondary
    • Post-16
  • Parents expand_more
    • Early Years
    • Primary
    • Secondary
    • Post-16
  • Problem-Solving Schools
  • About NRICH expand_more
    • About us
    • Impact stories
    • Support us
    • Our funders
    • Contact us
  • search

Or search by topic

Number and algebra

  • The Number System and Place Value
  • Calculations and Numerical Methods
  • Fractions, Decimals, Percentages, Ratio and Proportion
  • Properties of Numbers
  • Patterns, Sequences and Structure
  • Algebraic expressions, equations and formulae
  • Coordinates, Functions and Graphs

Geometry and measure

  • Angles, Polygons, and Geometrical Proof
  • 3D Geometry, Shape and Space
  • Measuring and calculating with units
  • Transformations and constructions
  • Pythagoras and Trigonometry
  • Vectors and Matrices

Probability and statistics

  • Handling, Processing and Representing Data
  • Probability

Working mathematically

  • Thinking mathematically
  • Developing positive attitudes
  • Cross-curricular contexts

Advanced mathematics

  • Decision Mathematics and Combinatorics
  • Advanced Probability and Statistics
  • Mechanics
  • Calculus

For younger learners

  • Early Years Foundation Stage

Euler's Squares

Age 14 to 16
Challenge Level Yellow star
  • Problem
  • Student Solutions

Congratulations to Tony Cardell, age 14, State College Area High School, Pennsylvania, USA for this solution. Three of the numbers Euler has listed are 18530, 65570 and 45986. We want to find the fourth number that will complete his set so that any two added together form a perfect square. Therefore, we can set up the equations, where $p$, $q$ and $r$ are natural numbers, and $x$ is our fourth Euler number:

$\begin{eqnarray} 18530 + x &=p^2\\ 65570 + x &=q^2\\ 45986 + x &=r^2, \end{eqnarray}$

Now by subtraction, we have $q^2-r^2 = 19584.$ Following the hint given in the problem, we know $q \geq \sqrt{65570} \geq 257$ and $r \geq \sqrt{45986} \geq 215$\ so $q+r \geq 472$ and \[ q-r \leq {19584 \over 472} \leq 41.5 \] so $q-r$ is less than or equal to $41$.

Now since we have the factorization $(q - r)(q + r)$, we want to find possible values of $q - r$ in our range from $1$ to $41$. You can do this by computing the prime factorization of $19584$ which is $2^7 \times 3^2 \times 17$. This generates a table of small factors. Here are the ones under $41$: $1$, $2$, $3$, $4$, $6$, $8$, $9$, $12$, $16$, $18$, $24$, $32$, $34$, $36$. From these values we can find $q+r$ easily. Adding $q-r$ and $q+r$ yields $2q.$ We want as small $q$ as possible (we want to keep them around Euler's other numbers), so since $q-r$ and $q+r$ are inversely related, we should start the calculation of possible $q$'s with the factors closest to the squares: $36$, $34$, and $32$. Each of these yields $q$ values respectively of $290$, $305$, and $322$. Squaring these and subtracting $65570$ yields possible $x$ values. Respectively these are: $18530$, $27455$, $38114$. Now $18530$ is already on Euler's list, so we move on to the next one, $27455$. We find this fails when added to $18530$ (it does not form a perfect square in this case). Moving on to the next possible value we find: combinations of $18530$, $65570$, and $45986$ are given to work among themselves.

$\begin{eqnarray} 38114 + 18530 &=238^2\\ 38114 + 65570 &=322^2\\ 38114 + 45986 &=290^2. \end{eqnarray}$


Thus $38114$ is our answer!!


You may also like

DOTS Division

Take any pair of two digit numbers x=ab and y=cd where, without loss of generality, ab > cd . Form two 4 digit numbers r=abcd and s=cdab and calculate: {r^2 - s^2} /{x^2 - y^2}.

2-digit Square

A 2-Digit number is squared. When this 2-digit number is reversed and squared, the difference between the squares is also a square. What is the 2-digit number?

Odd Differences

The diagram illustrates the formula: 1 + 3 + 5 + ... + (2n - 1) = n² Use the diagram to show that any odd number is the difference of two squares.

  • Tech help
  • Accessibility Statement
  • Sign up to our newsletter
  • Twitter X logo

The NRICH Project aims to enrich the mathematical experiences of all learners. To support this aim, members of the NRICH team work in a wide range of capacities, including providing professional development for teachers wishing to embed rich mathematical tasks into everyday classroom practice.

NRICH is part of the family of activities in the Millennium Mathematics Project.

University of Cambridge logo NRICH logo