(Unfortunately the non-empty condition resists attempts to cleanly incorporate it into the limerick. So we have to restrict the definition of a contraction to non-empty spaces to make this work :/)
(One way of thinking about this is: if a implies b, then b is at least as true as a)
int hcf(int a, int b){return a?hcf(b%a,a):b;}
This is in some sense unsurprising. Multiplying the whole thing out will result in a polynomial, plus (Ax+b)/(1+x2). A is 0 by symmetry, and B turns out to be -4. The integral of the polynomial bit must be a rational number, the whole answer must be small, so the rational number must be a good approximation to pi. Similar integrals give better approximations.
A man, a plan, a canoe, pasta, hero's rajahs, a coloratura, maps, snipe, percale, macaroni, a gag, a banana bag, a tan, a cat, a mane, paper, a Toyota rep, a pen, a mat, a can, a tag, a banana bag again(or a camel), a crepe, pins, spam, a rut, a Rolo, cash, a jar, sore hats, a peon, a canal, Panama!