## Teaser 2882: Snow White

**From The Sunday Times, 17th December 2017** [link]

Snow White placed three balls in a hat (“Oh yes she did!”): written on each ball was a different non-zero digit. She asked one of her little helpers to draw out the three in some order and to use them in that order to make a three-figure number. She knew that this number would be divisible by three but not by seven. She asked the helpers to share out that number of sweets equally amongst the seven of them as far as possible and to give her the remainder. She knew that on seeing the remaining sweets she would be able to work out the order in which the three digits had been drawn out.

What (in increasing order) were the three digits?

[teaser2882]

## Jim Randell 8:51 am

on26 December 2019 Permalink |This Python program runs in 73ms.

Run:[ @repl.it ]Solution:The three digits were: 4, 8, 9.They can be assembled into the following 3-digit numbers (and residues modulo 7):

Each permutation of the digits is uniquely identified by the residue.

LikeLike

## GeoffR 4:31 pm

on26 December 2019 Permalink |LikeLike