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

Simple Counting Machine

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

In this problem a circuit has been set up. There are two switches on the left, two logic gates in the middle and two bulbs on the right.

Currently the gates are both set to XOR. They can be changed to any of the following: AND, NAND, OR, NOR, XNOR. Any switch or gate can be altered by clicking on the blue square in its top left hand corner. If you are unsure about the meaning of the logic gates, take a look at Circuit Maker

Can you set the gates so that the number of bulbs which are on is the same as the number of switches which are on?

In other words:
when both switches are off both bulbs are off,
when either switch is on one bulb is on,
when both switches are on both bulbs are on.

Full Screen Version


Other circuits to try to construct

Can you set the gates so that:

when both switches are on both bulbs are on,
the rest of the time - both bulbs are off;

when both switches are off both bulbs are on,
the rest of the time - both bulbs are off;

when both switches are off both bulbs are off,
when one switch is on both bulbs are on,
when both switches are on one bulb is on.

Experiment further with the effects of the different settings to create similar problems: choose a setting for the two gates, describe clearly the effect of your circuit and challenge a partner to figure out your settings.

If you liked this problem you may like to build your own circuit boards with interesting properties using the Circuit Maker interactivity, or try the harder Adding Machine problem.

You may also like

Crossing the Bridge

Four friends must cross a bridge. How can they all cross it in just 17 minutes?

Coins

A man has 5 coins in his pocket. Given the clues, can you work out what the coins are?

Flow Chart

The flow chart requires two numbers, M and N. Select several values for M and try to establish what the flow chart does.

  • 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