chain link vs. sprocket size

not sure if this helps you, but i got a 14/40 chainset, hated the 14t front for in the trails, so went back to the 13t front, and had to remove 2 links,
and i believe 1 front tooth equals 3 back teeth