Skip to content

Sunday Times Teaser 3265 – Easter Prayer

by BRG on April 20, 2025

by Andrew Skidmore

Published Sunday April 20 2025 (link)

Millions of people will today turn their thoughts to those throughout the world whose lives are made miserable by the ravages of war and bitter conflict. I have taken a selection of letters from the alphabet and given each a different single-digit value. In this way the two words that form the title of this teaser represent two six-figure numbers, one of which is a factor of the other.

There are two letters in EASTER PRAYER for which the following is true. If I told you the value of that letter alone, you wouldn’t be able to work out all the others, but if I told you both their values then you could work out all the values.

What is the value of PRAYER?

From → Uncategorized

8 Comments Leave one →
  1. BRG permalink

    My initial solution had a more complicated final section which I replaced with the much better one provided by John Z below.

    • John Z permalink

      Coding the s2n function on line 6 as:

      may result in a slight speed improvement. My ‘longhand’ calculation below is probably faster still, though.

      • BRG permalink

        Yes, a bit faster but the direct arithmetic calculation with numeric constants
        will I think be much faster.

  2. John Z permalink

    • John Z permalink

      A cleaner version using permutations instead of nested for loops is in the works.

      • Frits permalink

        @John, your len(x[1]) == 2 in line 28 is too restrictive. E.g. adding 2 incorrect
        (E, A, S, T, R, P, Y) entries to dLV ([7, 9, 6, 3, 5, 1, 0] and [7, 9, 3, 8, 5, 1, 6])
        should not result in only one solution.

  3. John Z permalink

  4. John Z permalink

    Here is a ‘less restrictive’

    approach

Leave a Reply

Note: HTML is allowed. Your email address will not be published.

Subscribe to this comment feed via RSS