Generalized BBP, main runs only pi