As I was going to St Ives

= As I was going to St Ives =

...

"As I was going to St Ives" is a traditional English-language nursery rhyme in the form of a riddle. Its Roud Folk Song Index number is 19772.

'''Lyrics '''

The most common modern version is:
 * As I was going to St. Ives,
 * I met a man with seven wives,
 * Each wife had seven sacks,
 * Each sack had seven cats,
 * Each cat had seven kits:
 * Kits, cats, sacks, and wives,
 * How many were there going to St. Ives?[1]

'''Origins '''The following version is found in a manuscript (Harley MS 7316) dating from approximately 1730:[1]
 * As I went to St. Ives
 * I met Nine Wives
 * And every Wife had nine Sacs,
 * And every Sac had nine Cats
 * And every Cat had nine Kittens

A version very similar to that accepted today was published in the Weekly Magazine of August 4, 1779:[2]
 * As I was going to St Ives,
 * Upon the road I met seven wives;
 * Every wife had seven sacks,
 * Every sack had seven cats,
 * Every cat had seven kits:
 * Kits, cats, sacks, and wives,
 * How many were going to St Ives?

The suggestion of polygamy (implicit in the line "I met a man with seven wives") is generally absent from the earliest publications, but is present by 1837.[3]

There are a number of places called St Ives in England and elsewhere. It is generally thought that the rhyme refers to St Ives, Cornwall, when it was a busy fishing port and had many cats to stop the rats and mice destroying the fishing gear, although some people argue it was St Ives, Cambridgeshire as this is an ancient market town and therefore an equally plausible destination.[4][5]'''Answers '''All potential answers to this riddle are based on its ambiguity because the riddle only tells us the group has been "met" on the journey to St. Ives and gives no further information about its intentions, only those of the narrator. In modern usage, 'to meet someone on the road' may include the sense of 'passed' or 'overtook'; while the older usage may have referred exclusively to those going in opposite directions.[6] As such, the 'correct' answer could be stated as "at least one, the narrator plus anyone who happens to be travelling in the same direction as him or her".[7]

If the group that the narrator meets is assumed not to be travelling to St. Ives the answer could be one person going to St. Ives: the narrator. This is the most common assumption,[1] as the purpose of the riddle was most likely to trick the listener into making long winded calculations only to be surprised by the simplicity of the answer.[8]

If one disregards the 'trick' answer and assumes the narrator overtook the group as they were also travelling to St. Ives,[1] the most common mathematical answer is 2802: 1 man, 7 wives, 49 sacks, 343 cats, and 2401 kits, plus the narrator (the sum of a geometric series, plus one).

After the riddle was published in the August 4, 1779 issue of The Weekly Magazine, as described above, a subsequent edition of that journal contained the following solution, submitted by reader "Philo-Rhithmus" of Edinburgh:[9]
 * Why the deuce do you give yourselves so much vexation,
 * And puzzle your brains with a long calculation
 * Of the number of cats, with their kittens and sacks,
 * Which went to St Ives, on the old women's backs,
 * As you seem to suppose? — Don't you see that the cunning
 * Old Querist went only? — The rest were all coming.
 * But grant the wives went too, — as sure's they were married,


 * Eight only could go, — for the rest were all carried.

'''Rhind mathematical papyrus '''A similar problem is found in the Rhind Mathematical Papyrus (Problem 79), dated to around 1650 BC. The papyrus is translated as follows:[10] The problem appears to be an illustration of an algorithm for multiplying numbers. The sequence 7, 72, 73, 74, 75 appears in the right-hand column, and the terms 2,801, 2×2,801, 4×2,801 appear in the left; the sum on the left is 7×2,801 = 19,607, the same as the sum of the terms on the right. The equality of the two geometric sequences can be stated as the equation (20+21+22)(70+71+72+73+74) = 71+72+73+74+75, which relies on the coincidence 20+21+22=7.

Note that the author of the papyrus listed a wrong value for the fourth power of 7; it should be 2,401, not 2,301. However, the sum of the powers (19,607) is correct.

The problem has been paraphrased by modern commentators as a story problem involving houses, cats, mice, and grain,[11] although in the Rhind Mathematical Papyrus there is no discussion beyond the bare outline stated above. The hekat was ​1⁄ of a cubic cubit (approximately 4.8 l or 1.1 imp gal or 1.3 US gal).'''In popular culture ''' As I was going to St Ives I met a man with seven wives Of course, the seven wives weren't his But here in France, that's how it is
 * It was parodied by Roald Dahl in his poetry book Rhyme Stew (1989): "As I was going to St Ives/ I met a man with seven wives/ he said: "I think it's much more fun/ than getting stuck with only one."
 * In the 1995 film Die Hard with a Vengeance, the rhyme is presented to the protagonists by the villain as a riddle, giving them thirty seconds to telephone him on the number "555 plus the answer" or a bomb would detonate. The protagonists initially believe the answer to be 2401, only solving for the number of kits. However, they eventually solve the riddle, calling the number 555–0001 which proves to be correct. They missed the 30-second deadline, but the bomb did not explode since the villain had not said "Simon says."
 * The rhyme was recited by Mary Murphy's character while caring for a cat with seven kittens in the movie A Man Alone. Later the character played by Ray Milland who overheard the rhyme offers her the answer and Murphy's character explains that she alone was going to St. Ives.
 * The rhyme was also the basis of a Sesame Street Muppet skit from the show's first season, in which the boy Muppet holding a numeral 7 sings the rhyme as a song to the girl Muppet twice (the second time, the girl is busy writing down the calculations) and finally, in keeping true to the spirit of the riddle, reveals the answer as 1 (the traditional answer), because he was going to St. Ives and the kits, cats, sacks and wives were going the other way. Then the girl turns the tables on the boy and asks how many were going the other way. She then reveals the mathematical answer from her calculations: 1 man + 7 wives + 49 sacks + 343 cats + 2,401 kittens, which comes to 2,801. Astonished, the boy responds, "How about that?!"
 * Mad magazine used it in at least two articles over the years for the following parodies:

and

As I was going to St Ives I met a man with seven wives I know this sounds absurd and loony But that poor man was Mickey Rooney! '''References Citations  Bibliography '''
 * In a post-Christmas Pogo comic strip sequence from December 1957, Pogo Possum gives Albert Alligator a book with the poem and Albert immediately gets hopelessly entangled by the riddle. Pogo's proposed solution: "Gimme the book back an' I'll give you a pair of pants to go with the suspenders you got."
 * In the sixth series of BBC radio comedy John Finnemore's Souvenir Programme, the fourth episode features a sketch with a Cornishmanarguing with another man on a train about whether he actually has seven wives, each of whom have sacks of cats with them, on the train with him.
 * 1) I. Opie and P. Opie, The Oxford Dictionary of Nursery Rhymes (Oxford University Press, 1951, 2nd edn., 1997), pp. 376–7.
 * Øystein Ore, "Number Theory and its History", McGraw–Hill Book Co, 1944