pi_digit works for n <= 2