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

Diophantine N-tuples

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

Take any whole number $q$. Calculate $ q^2 - 1$. Factorize $ q^2 - 1 $ to give two factors $ a$ and $ b$ (not necessarily $ q+1$ and $ q-1$). Put $ c = a + b + 2q $ . Then you will find that $ ab + 1 $ , $ bc + 1 $ and $ ca + 1 $ are all perfect squares.

Prove that this method always gives three perfect squares.


The numbers $ a_1, a_2, ... a_n $ are called a Diophantine n-tuple if $ a_ra_s + 1 $ is a perfect square whenever $ r \neq s $ . The whole subject started with Diophantus of Alexandria who found that the rational numbers $$ {1 \over 16},\ {33\over 16},\ {68\over 16},\ {105\over 16} $$
have this property. (You should check this for yourself). Fermat was the first person to find a Diophantine 4-tuple with whole numbers, namely $1$, $3$, $8$ and $120$. Even now no Diophantine 5-tuple with whole numbers is known.

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}.

Sixational

The nth term of a sequence is given by the formula n^3 + 11n. Find the first four terms of the sequence given by this formula and the first term of the sequence which is bigger than one million. Prove that all terms of the sequence are divisible by 6.

Plum Tree

Label this plum tree graph to make it totally magic!

  • 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