Pi is generated using various mathematical formulas, primarily through infinite series and iterative methods. One common approach is the arctan series, which converges to pi but does so slowly, requiring many terms for accuracy. More efficient series, like those derived from Ramanujan's work, have been developed to calculate pi more rapidly. Modern computations utilize powerful computers, allowing pi to be calculated to billions of digits. Additionally, there are methods to find specific digits of pi without calculating the entire number.