This is a variation of Abracadabra
The words "notion", "thought" and "devolved" share a similar pattern.
Each of the three words consist of three groups of letters where the third group is formed by writing the first group in reverse order
and the second group of letters is between them – and, each of the three groups consists of 2 or more letters
None of the words can be palindromes
None of the words can be plurals or proper nouns.
What is the longest word satisfying all the above conditions ?
For an extra challenge, find the longest word satisfying all the given conditions with the added proviso that none of the words can start with DE or RE.
OPEN "\words\words.txt" FOR INPUT AS #1
OPEN "abraarba.txt" FOR OUTPUT AS #2
LINE INPUT #1, w$
IF LEN(w$) >= 6 THEN
IF LEFT$(w$, 1) = RIGHT$(w$, 1) THEN
IF MID$(w$, 2, 1) = MID$(w$, LEN(w$) - 1, 1) THEN
good = 0
FOR i = 3 TO LEN(w$) / 2
IF MID$(w$, i, 1) <> MID$(w$, LEN(w$) + 1 - i, 1) THEN
endlen = i - 1
good = 1: EXIT FOR
IF good THEN
PRINT #2, endlen; w$
IF LEN(w$) >= max THEN max = LEN(w$): PRINT max, w$: ELSE IF LEN(w$) > 16 THEN PRINT LEN(w$); w$
LOOP UNTIL EOF(1)
finds the longest word as the 19-letter deinstitutionalized, with the 19-letter semiconsciousnesses disallowed by the rule against plurals.
The longest not beginning DE or RE is the 17-letter nondiscrimination and nonfraternization as the 18-letter semipermeabilities is a plural.
Only a handful have parts 1 and 3 that are longer than 2:
The following have part 1 (and corresponding part 3) of length 3:
minyanim (actually I think this is a plural, from Hebrew)
(plurals have been removed except as noted).
Only reengineer has length 4.
Posted by Charlie
on 2012-01-10 21:24:12