I wonder if this is a CS problem somebody solved in 1954. Does somebody have the link to that paper?
(I'm not serious about 1954 in particular, I am about hoping somebody here knows the CS literature better than me)