@@ -0,0 +1,525 @@
+public class Euler45%7B%0A    %0A    private double pentagonal(double h)%7B%0A        double p = (Math.sqrt(1+24*h)+1)/6;%0A        return p;%0A    %7D%0A    %0A    public static void main(String%5B%5D args)%7B%0A        Euler45 next = new Euler45();%0A    %0A        double h;%0A        double p;%0A        %0A        for(long n = 144; n%3C10000000; n++)%7B%0A            h = n*(2*n-1);%0A            p = next.pentagonal(h);%0A             %0A            if((int)p == p)%7B%0A                System.out.println((int)h);%0A                break;%0A            %7D%0A        %7D%0A    %7D    %0A%7D

add Euler45