Did you know that M-x calc in Emacs supports exact fractions? (I didn't.) Use colons, so 1:3 is one third.