**From New Scientist #2320, 8th December 2001** [link]

I call the number 25 “straight” because when written in words with capital letters it uses only straight lines. In fact, when written in simple capitals, it uses 29 line segments (including the hyphen), 11 of which are horizontal; also it has 10 letters. On the other hand 18 is not straight because it uses a curved G.

I have now written down three straight numbers in words with simple capitals. The first of the numbers is within 1 of the total number of line segments in the three numbers. The second on the numbers is within 1 of the total number of horizontal line segments in the three numbers. And the third of the numbers is within 1 of the total number of letters in the three numbers.

What are the three numbers?

[enigma1164]

### Like this:

Like Loading...

The answer on this one depends on how you write the letter Y. For the vast majority of the fonts on my system it consists of 3 line segments, but there are a few fonts (particularly “handwriting” fonts) that only use 2 line segments. But as the example given in the puzzle text (25 = TWENTY-FIVE) has 29 line segments using the 3 line segment version of Y, and only 28 if using the 2 line segment version, my program uses the 3 line segment version.

This Python program runs in 41ms.

Solution:The three numbers are: 59, 20, 20.If the 2 line segment version of Y is used the solution is: 55, 20, 20.

If you like complex expressions and shorter programs you can coalesce lines 49-53 into a single expression.