pi_digit works for n <= 6
works for small n