I tried to derive a formula for calculating chain length increase when adding teeth a while back. Unfortunately, I got way bogged down and didn't feel like trying to simplify. It was messy.
Anyhow, while it's true that they do wrap the same amount of chain, it may also be important to recognize that the path of the chain from ring to cog is the hypotenuse of a right triangle, approximately.