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

Enriching Experience

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

Oops, there was a typographic error in the formula at the start of the month. It is right now. Thank you to Andrei Lazanu of school 205 Bucharest for what follows.

First, I tried to solve the problem in the "conventional mathematical way", and I listed the powers of 1, 2, 3, 4, 9 from 0 to 9, looking in each case to eliminate those greater than 5 digit numbers, attributed to both $r^n$ and $c^h$.

Because it seemed very long, I tried the problem from a "calculatoristic" point of view:

First I observed that N must be greater than 0, and each other number must have the values from 0 to 9. I wrote a program in MATLAB to calculate the numbers.

The idea of the program is to test for all digits the values from 0 (1) to 9. For this I wrote a cycle allowing $n$ to have values between 1 and 9.For each value of $n$, I give an inside cycle, to $r$ values from 0 to 9. So, this works as follows: $n$ has the value 1, and for this $r$ has in turn values from 0 to 9. This is the idea of a cycle inside another one. Each cycle ends with end.

For this problem there are 5 cycles, the most interior being for $h$, that has values between 0 and 9.

When I arrived at this cycle, I test if the condition of the problem: $r^n - i + c^h = 1000\times r+100\times i+10\times c+h$is fulfilled. If yes, the number $1000\times r+100\times i+10\times c+h$is written on the screen.

Because this way I'll find all solutions, even with repeated digits, I must in a further step eliminate them.

Here is the program:

for n=1:9;

for r=0:9;

for i=0:9;

for c=0:9;

for h=0:9;

if $r^n - i + c^h - 10000 n - 1000 \times r - 100 \times i - 10 \times c - h == 0$

a =[n r i c h]

end

end

end

end

end

end

The results given were the following:

a = 5 9 0 5 0

and

a = 5 9 2 6 3

As in the first one the digits are not distinct, this is not a solution.

The second is the unique solution of the problem:

n = 5
r = 9
i = 2
c = 6
h = 3


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

Novemberish

a) A four digit number (in base 10) aabb is a perfect square. Discuss ways of systematically finding this number. (b) Prove that 11^{10}-1 is divisible by 100.

Latin Numbers

Can you create a Latin Square from multiples of a six digit number?

  • 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