Skip to content

Sunday Times Teaser 3085 – Lucky Progression

by BRG on November 5, 2021

by Victor Bryant

Published Sunday November 07 2021 (link)

I wrote down a number which happened to be a multiple of my lucky number. Then I multiplied the written number by my lucky number to give a second number, which I also wrote down. Then I multiplied the second number by my lucky number again to give a third, which I also wrote down. Overall, the three numbers written down used each of the digits 0 to 9 exactly once.

What were the three numbers?

From → Uncategorized

7 Comments Leave one →
  1. Brian Gladman permalink

  2. John Z permalink

    Brute force:

  3. John Z permalink

    Less brute force, more lines of code

    • John Z permalink

      Line 16 can be simplified to:

      because line 12 eliminates all cases of total digit length > 10. Hence len(ss) must be <= 10. If each digit 0-9 is represented once and only once then total length of the three numbers must also be 10.

  4. Frits permalink

    More complex but only 64 numbers are being checked on being pandigital.

  5. Frits permalink

  6. Naim Uygun permalink

Leave a comment to Naim Uygun Cancel reply

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

Subscribe to this comment feed via RSS