Consider the names of capitals of two US states together amounting to precisely 13 letters.
Rearrange these thirteen letters to constitute the names of two creatures. One of the creatures is a prehistoric animal found in the plains and the other is a present-day animal also found in the plains.
Spaces do not count as letters in city names such as "Santa Fe" or, "Des Moines".
*** Adapted from a problem appearing in NPR's "Sunday Puzzle" in 2005.
clearvars, clc
fid=fopen('c:\vb5 projects\flooble\states abbr capital region.txt','r');
list=[]; ct=0;
while ~feof(fid)
l=fgetl(fid);
l=lower(l);
cap=strtrim(l(29:47));
list=[list string(cap)];
end
for i=1:50
a=char(list(i));
for j=i+1:50
b=char(list(j));
c=[a b];
if length(c)==13
disp(c)
ct=ct+1;
end
end
end
disp(ct)
finds pairs of capitals adding to 13 letters:
juneauphoenix
juneauatlanta
juneauaugusta
juneaulansing
juneaujackson
juneaulincoln
juneauconcord
juneautrenton
juneauraleigh
juneauolympia
juneaumadison
phoenixdenver
phoenixtopeka
phoenixboston
phoenixhelena
phoenixalbany
phoenixpierre
phoenixaustin
denveratlanta
denveraugusta
denverlansing
denverjackson
denverlincoln
denverconcord
denvertrenton
denverraleigh
denverolympia
denvermadison
hartforddover
hartfordboise
hartfordsalem
doverhonolulu
doverst. paul
doversanta fe
doverbismarck
dovercolumbus
dovercolumbia
doverrichmond
dovercheyenne
atlantatopeka
atlantaboston
atlantahelena
atlantaalbany
atlantapierre
atlantaaustin
honoluluboise
honolulusalem
boisest. paul
boisesanta fe
boisebismarck
boisecolumbus
boisecolumbia
boiserichmond
boisecheyenne
topekaaugusta
topekalansing
topekajackson
topekalincoln
topekaconcord
topekatrenton
topekaraleigh
topekaolympia
topekamadison
augustaboston
augustahelena
augustaalbany
augustapierre
augustaaustin
bostonlansing
bostonjackson
bostonlincoln
bostonconcord
bostontrenton
bostonraleigh
bostonolympia
bostonmadison
lansinghelena
lansingalbany
lansingpierre
lansingaustin
st. paulsalem
jacksonhelena
jacksonalbany
jacksonpierre
jacksonaustin
helenalincoln
helenaconcord
helenatrenton
helenaraleigh
helenaolympia
helenamadison
lincolnalbany
lincolnpierre
lincolnaustin
concordalbany
concordpierre
concordaustin
trentonalbany
trentonpierre
trentonaustin
santa fesalem
albanyraleigh
albanyolympia
albanymadison
raleighpierre
raleighaustin
bismarcksalem
columbussalem
salemcolumbia
salemrichmond
salemcheyenne
pierreolympia
pierremadison
austinolympia
austinmadison
115 concatenations
Although the list could use debugging (getting rid of st. paul), inspection shows that bostonmadison can be anagrammed into mastodon bison.
|
Posted by Charlie
on 2022-05-06 10:00:25 |