Teaser 2700: Spell check
From The Sunday Times, 22nd June 2014 [link] [link]
This is Teaser 2700. The number 2700 is not particularly auspicious, but it does have one unusual property. Notice that if you write the number in words and you also express the number as a product of primes you get:
TWO THOUSAND SEVEN HUNDRED = 2 2 3 3 3 5 5
The number of letters on the left equals the sum of the factors on the right! This does happen occasionally. In particular it has happened for one odd-numbered Teaser in the past decade.
What is the number of that Teaser?
[teaser2700]



Jim Randell 5:13 pm on 4 August 2020 Permalink |
There is a handy utility function [[
int2words()]] in the enigma.py library, that converts a number to it’s “standard” English equivalent.This Python program runs in 53ms.
Run: [ @repl.it ]
from enigma import irange, int2words, factor, printf # check odd numbers for n in irange(2699, 1, step=-2): # count the letters s = int2words(n) c = sum(x.isalpha() for x in s) # sum the factors fs = factor(n) t = sum(fs) if c == t: printf("{n} = \"{s}\", {c} letters; factors = {fs}, sum = {t}") breakSolution: Teaser 2401.
2401 = “two thousand four hundred and one”, which has 28 letters, and:
2401 factorises as (7, 7, 7, 7), which sums to 28.
Earlier odd numbers with the same property: 1725, 1029, 693, 585, 363, 153, 121, 25.
The next time it will occur is at 3087.
Teaser 3087 should be published in November 2021.
LikeLike