## Teaser 2908: Number challenge

**From The Sunday Times, 17th June 2018** [link]

I challenged Charlotte and Oliver to find a 9-digit number, using nine different digits, so that:

- The number given by the 1st and 2nd digits was divisible by 2.
- The number given by the 2nd and 3rd digits was divisible by 3.
- …
And so on until:

- The number given by the 8th and 9th digits was divisible by 9.
They each produced a different, correct solution.

Charlotte claimed hers was the better solution since in her number, the number formed by the first seven digits was also divisible by 7, Charlotte’s age.

What was Charlotte’s number?

[teaser2908]

## Jim Randell 2:15 pm

on3 June 2019 Permalink |We can solve this puzzle using the [[

`SubstitutedExpression()`

]] solver from theenigma.pylibrary.This run file executes in 124ms.

Run:[ @repl.it ]Solution:Charlotte’s number was 187254963.And Oliver’s number was 781254963.

Allowing leading zeros gives the following additional solutions:

which could also be valid numbers for Oliver.

LikeLike

## GeoffR 7:19 pm

on3 June 2019 Permalink |LikeLike