## Teaser 2929: My PIN numbers

**From The Sunday Times, 11th November 2018** [link]

Using all but one of the digits 0 to 9, and systematically replacing them by a letter, my PIN numbers become

ONE,TWO,FIVEandSEVEN.These numbers are such that:

ONEis odd;

TWOis even;

FIVEis odd and divisible by 5;

SEVENis divisible by 7;

ONE + TWO + TWO = FIVEIf I told you which digit was not used, you should be able to work out my PIN numbers.

What PIN number is represented by

SEVEN?

[teaser2929]

## Jim Randell 7:45 am

on29 March 2019 Permalink |This Python program links together a couple of routines from the

enigma.pylibrary. First we use the [[`SubstitutedExpression()`

]] solver to find solutions to the alphametic expressions, then use use the [[`filter_unique()`

]] function to select solutions that have a unique unused digit.It runs in 90ms.

Run:[ @repl.it ]Solution:SEVEN = 95452.LikeLike

## GeoffR 4:11 pm

on29 March 2019 Permalink |This programme finds four answers, three of which have the same unused digit 4, whilst the last answer has the unique unused digit 3, which gives the answer ie SEVEN = 95452

LikeLike