<BEGIN>
What a piece of work is a man,
How noble in reason,
How infinite in faculties, in form and moving
How express and
admirable in action
How like an angel in apprehension
How like
a god!
The beauty of the world, the paragon of animals—and yet to me,
What is this quintessence of dust?
Man delights not me —
nor woman neither,
Though by your smiling you seem to say so.
How many sequential appearances of the letters t-e-s-t are there on this page between <BEGIN> and the 2nd appearance of <END>?
Watch out - all counts.
<END>
To avoid ambiguity- scan sequentially from left to right and in the sentence "THIS TEST GETS TROUBLE" you should reach a count of 9: 4 starting with the 1st letter of the sample sentence, similar 4 starting with the fifth plus another one beginning with the eighth letter (the last letter in the word "TEST").
I did the same thing as Steve, except in Excel. The end result was a column of all the T's, E's and S's in sequential order.
For each S, I counted how many T's came after.
Then for each E, I summed up how many of these ST pairs came after.
Then for each T, I summed up how many of these EST triplets came after.
This worked out to 41,122 (which is the sum of the values in the rightmost column below):
I'm not 100% sure I did it right but that's what I came up with.
Letter / ST / EST / TEST
T --- --- 7186
E --- 417 ---
E --- 417 ---
S 31 --- ---
E --- 386 ---
E --- 386 ---
S 31 --- ---
T --- --- 5580
E --- 355 ---
T --- --- 5225
E --- 355 ---
S 29 --- ---
E --- 326 ---
E --- 326 ---
S 29 --- ---
S 29 --- ---
E --- 268 ---
T --- --- 3950
E --- 268 ---
E --- 268 ---
E --- 268 ---
E --- 268 ---
S 28 --- ---
E --- 240 ---
T --- --- 2638
E --- 240 ---
E --- 240 ---
T --- --- 2158
T --- --- 2158
E --- 240 ---
T --- --- 1918
E --- 240 ---
S 24 --- ---
E --- 216 ---
T --- --- 1462
T --- --- 1462
E --- 216 ---
T --- --- 1246
S 21 --- ---
T --- --- 1246
S 20 --- ---
T --- --- 1246
E --- 175 ---
S 19 --- ---
S 19 --- ---
E --- 137 ---
E --- 137 ---
S 19 --- ---
T --- --- 797
E --- 118 ---
T --- --- 679
S 17 --- ---
T --- --- 679
E --- 101 ---
E --- 101 ---
T --- --- 477
E --- 101 ---
T --- --- 376
S 14 --- ---
S 14 --- ---
E --- 73 ---
E --- 73 ---
T --- --- 230
S 13 --- ---
S 13 --- ---
S 13 --- ---
E --- 34 ---
E --- 34 ---
T --- --- 162
E --- 34 ---
E --- 34 ---
S 12 --- ---
T --- --- 94
E --- 22 ---
E --- 22 ---
T --- --- 50
T --- --- 50
E --- 22 ---
S 9 --- ---
T --- --- 28
E --- 13 ---
S 8 --- ---
T --- --- 15
E --- 5 ---
T --- --- 10
E --- 5 ---
E --- 5 ---
T --- --- 0
S 5 --- ---
E --- 0 ---
E --- 0 ---
T --- --- 0
E --- 0 ---
E --- 0 ---
E --- 0 ---
T --- --- 0
E --- 0 ---
E --- 0 ---
E --- 0 ---
E --- 0 ---
T --- --- 0
T --- --- 0
T --- --- 0
|
Posted by tomarken
on 2014-12-03 13:37:50 |