• Source
    1. import java.math.BigInteger;
    2. class Main{
    3. public static void main(String[] args){
    4. int n=100;
    5. BigInteger a=BigInteger.TEN.pow(n);
    6. BigInteger b=a;
    7. for(n=n*8+1; 3<=n; n-=2)
    8. a = a.add(b).add(b).multiply(BigInteger.
    9. valueOf(n/2)).divide(BigInteger.valueOf(n));
    10. System.out.println("3."+a.subtract(b).toString());
    11. } }