Teaser 2585: Easter Teaser
From The Sunday Times, 8th April 2012 [link] [link]
I took the letters A, E, E, R, S and T and wrote down the long list of all possible different combinations of them. So, in alphabetical order, my list was AEERST, AERTS, …, EASTER, …, TEASER, …, TSREEA. I then assigned each of the letters a different odd digit, turning my list into a list of numbers. Surprisingly, the grand total of my list of numbers contained no odd digit.
What is E+A+S+T+E+R?
This completes the archive of Teaser puzzles from 2012, so there is now a complete archive of puzzles (and solutions) from Teaser 2569 (December 2011) to the most recent puzzle Teaser 3256 (February 2025), along with many earlier puzzles. There are another 21 puzzles to post from 2011 before all puzzles from the 2020 book are posted.
Between S2T2 and Enigmatic Code there are now 3577 puzzles available.
[teaser2585]
Jim Randell 12:09 pm on 21 February 2025 Permalink |
The following Python runs in 59ms. (Internal runtime is 367µs).
from enigma import (irange, multiset, repdigit, subsets, nsplit, map2str, printf) word = 'EASTER' m = multiset.from_seq(word) # calculate multiplier for sum of letters n = m.size() p = repdigit(n) * m.multinomial() // n # even/odd digits evens = set(irange(0, 9, step=2)) odds = irange(1, 9, step=2) # now assign odd digits to each letter rs = set() ks = sorted(m.keys()) for vs in subsets(odds, size=len(ks), select='P'): d = dict(zip(ks, vs)) # calculate the sum of the letters in the word s = sum(d[x] for x in word) # calculate the sum of all the permutations t = s * p # check the total contains only even digits if not evens.issuperset(nsplit(t)): continue # answer is sum of the letters in word printf("[sum = {s}; {d} -> {t}]", d=map2str(d)) rs.add(s) printf("answer = {rs}", r=sorted(rs))Solution: E+A+S+T+E+R = 34.
E is 9, and A, R, S, T are 1, 3, 5, 7 in some order.
And the sum of all possible arrangements is 226666440.
For EASTER there are 360 different arrangements of the letters (there are 2 E‘s that are not distinguishable).
There are 6 possible positions each letter can appear in. And each of the 6 letters (including repeats) appears in each position 60 times.
So each letter contributes 60 × 111111 = 6666660 times its own value to the total sum.
With the sum of the letters in EASTER = 1 + 3 + 5 + 7 + 2×9 = 34 we arrive at a total sum of:
which consists entirely of even digits.
And we see that reordering the values of the non-repeated letters does not change the total.
Using two copies of any odd digit other than 9 gives a total with at least one odd digit.
LikeLike