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

BT.. Eat Your Heart Out

Age 16 to 18
Challenge Level Yellow starYellow star
  • Problem
  • Getting Started
  • Student Solutions

Two excellent solutions follow, one from Elizabeth Whitmore of Madras College, St Andrew's, which uses Euclid's algorithm and the other, which uses a computer program, from Serguey and Ilya from the International School of The Hague. First Serguey and Ilya's solution.

Let $x$ be the three digit number at the start.

Let $y$ be the four digit number at the end of the phone number.

The original phone number is $10000x + y$. The changed phone number is $1000y + x$.

The new number is one more than the old number doubled so $$20000x + 2y + 1 = 1000y + x$$ $$19999x + 1 = 998y.$$ There are an infinite number of solutions to this equation.

We wrote the following program to test integer solutions:

 
 Module1 - 1
 

 
   Sub bbbbbbb ()
 

 
   y = 2004
 

 
   For x = 100 to 999
 

 
   y = (19999 * x + 1) / 998
 

 
   If y = Int(y) Then Debug.Print x; y
 

 
   Next x
 

 
   End Sub
 


 

The answer is: 435 8717
Elizabeth solved this equation $$998y-19999x = 1$$ using Euclid's algorithm, as follows:

\begin{eqnarray} \\ {\bf 19,999} &=& 998\times 20 + 39\\ \mathbf{998} &=& \mathbf{39}\times 25 + 23\\ \mathbf{39} &=& \mathbf{23}\times 1 + 16\\ \mathbf{23} &=& \mathbf{16}\times 1 + 7\\ \mathbf{16} &=& \mathbf{7}\times 2 + 2\\ \mathbf{7} &=& \mathbf{2}\times 3 + 1\\ \mathbf{2} &=& \mathbf{1}\times 2 + 0. \end{eqnarray}

Working backwards to get values for $x$ and $y$:

\begin{eqnarray} 1 &=& {\bf 7}-3\times {\bf 2}\\ &=& {\bf 7}-3\times ({\bf 16}-2\times {\bf 7})\\ &=& 7\times {\bf 7}-3\times {\bf 16}\\\ &=& 7\times ({\bf 23}-{\bf 16})-3\times {\bf 16}\\ &=& 7\times {\bf 23}-10\times {\bf 16}\\ &=& 7\times {\bf 23}-10\times ({\bf 39}-{\bf 23})\\ &=& 17\times {\bf 23}-10\times {\bf 39}\\ &=& 17\times ({\bf 998}-25\times {\bf 39})-10\times {\bf 39}\\ &=& 17\times {\bf 998}-435\times {\bf 39}\\ &=& 17\times {\bf 998}-435\times ({\bf 19999}-20\times {\bf 998})\\ &=& 8717\times {\bf 998}-435\times {\bf 19999}. \end{eqnarray}
Thus $y=8717$ and $x= 435$. The old telephone number is therefore 4358717. Checking, we have $$8717435 = 1 + 2\times 4358717.$$

You may also like

Shades of Fermat's Last Theorem

The familiar Pythagorean 3-4-5 triple gives one solution to (x-1)^n + x^n = (x+1)^n so what about other solutions for x an integer and n= 2, 3, 4 or 5?

Upsetting Pitagoras

Find the smallest integer solution to the equation 1/x^2 + 1/y^2 = 1/z^2

Some Cubes

The sum of the cubes of two numbers is 7163. What are these numbers?

  • 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