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

Who's Who?

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


We can represent a group of friends by drawing a graph.
Each node represents a person.
An edge joins two nodes if and only if those two people are friends.

Here is a graph showing a group of friends.
Can you work out who's who using the clues below?

  1. Alan has 3 friends, Barney, Charlie, and Daniel.
  2. Barney and Ed are both friends with Charlie.
  3. Ed is Frank's only friend.


Here is a second network of friends.
Again, can you use the clues below to figure out who's who?

  1. Bella and Ciara are friends
  2. Emily and Ciara are not friends
  3. Bella is Fiona's only friend
  4. Anna has more friends than anyone else
  5. Daphne has three friends
  6. Gill and Daphne are not friends
  7. Emily has two friends



Once you've solved the two puzzles, here are some questions to consider:

Did each problem have a unique solution?
Were there any clues you didn't need to use?

If you label each node with the number of friends the person has, and add together all the numbers, what can you say about the answer? Can you explain why?

Can you design a puzzle which has a unique solution?
Can you design a puzzle which has two possible solutions?

Have a go at creating some other friendship network puzzles of your own and send them in for us to try!

Download a printable version of this problem

This problem featured in an NRICH Secondary webinar in September 2021.

You may also like

Tea Cups

Place the 16 different combinations of cup/saucer in this 4 by 4 arrangement so that no row or column contains more than one cup or saucer of the same colour.

Instant Insanity

Given the nets of 4 cubes with the faces coloured in 4 colours, build a tower so that on each vertical wall no colour is repeated, that is all 4 colours appear.

Doesn't Add Up

In this problem we are faced with an apparently easy area problem, but it has gone horribly wrong! What happened?

  • 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