### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,367)
- misc (4)
- project euler (2)
- puzzle (90)
- puzzle# (48)
- site news (58)
- tantalizer (94)
- teaser (7)

### Site Stats

- 233,129 hits

Programming Enigma Puzzles

16 August 2013

Posted by on **From New Scientist #1261, 9th July 1981** [link]

You may remember (Enigma No. 105) the rapture of the cricket commentators over the batting of Henry Draycott. Here’s another snatch from their conversation that same afternoon:

“Oh, what a lovely six, another beautiful clean hit! How about that one, Jack?”

“Even better than the previous ones, and they were superb!”

“With the same magic qualities, Bob?”

“Oh, yes – just like his other sixes. The difference between the square of his score and the reverse of that square is the same for his scores both before and after the hit for six.”

“Remarkable! And if Henry reaches his double century, will it include the maximum possible number of such sixes?”

“Not so fast, Frank! I’ll come to that in a moment. First let me point out that this last six was even better than the earlier ones! Its ‘difference’ was the product of four consecutive odd integers, each one a prime or a square. And now for your last question…”

Well, what’s the answer? And what was Henry’s score at the time of this conversation?

[enigma117]

%d bloggers like this:

This Python code isn’t hugely efficient, but it runs in only 40ms, so I think that’s OK.

Solution:Henry cannot achieve a maximal sequence. He had just reached a score of 188 at the time of the conversation.188² = 35344 which is 9009 less than 44353. Previous score

182² = 33124 which is again 9009 less than its reversal 42133.

9009 = 7×9×11×13.

To achieve a maximum sequence he would need to have reached a score of 179 and then score two sixes in a row:

179² = 32041 which is 18018 more than 14023.

185² = 34225 which is 18018 less than 52243.

191² = 36481 which is 18018 more than 18463.

I think I’m right in saying that the only previous pairs were 132 & 138, 157 and 163,

and there can be no more before he reaches 200.

Please correct me if I’m wrong.