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

Charlie's Delightful Machine

Age 11 to 16
Challenge Level Yellow star
Secondary curriculum
  • Problem
  • Getting Started
  • Student Solutions
  • Teachers' Resources

You may wish to look at Shifting Times Tables before trying this problem.

Can you work out how to switch the lights on?

Charlie's Delightful Machine has four coloured lights. Each light is controlled by a rule.
If you choose a number that satisfies the rule, the light will go on.
Some numbers may turn on more than one light!

Start by exploring Level 1. Type in some numbers and see which lights you can switch on.
To start again with a new set of rules, click the Level 1 button.

Can you develop a strategy to work out the rules controlling each light?





Once you have a strategy, challenge yourself to find some four-digit numbers that turn on each light.

Once you are confident that you can work out the rules for Level 1 lights, have a go at A Little Light Thinking, where you can explore how to turn on several lights at once.

You may also wish to explore the Level 2 and 3 lights (which use a different type of sequence) in the same way. 

You may also be interested in the other problems in our Cracking Codes Feature.

Related Collections

  • From Particular to General
  • Working Systematically - Lower Secondary

You may also like

Days and Dates

Investigate how you can work out what day of the week your birthday will be on next year, and the year after...

Natural Sum

The picture illustrates the sum 1 + 2 + 3 + 4 = (4 x 5)/2. Prove the general formula for the sum of the first n natural numbers and the formula for the sum of the cubes of the first n natural numbers.

Series Sums

Let S1 = 1 , S2 = 2 + 3, S3 = 4 + 5 + 6 ,........ Calculate S17.

  • 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