Class PE0045

    • Constructor Summary

      Constructors 
      Constructor Description
      PE0045()
      A simple constructor to set number and title.
    • Method Summary

      Modifier and Type Method Description
      java.lang.String solve()
      It just needs one loop starting from the given Hn = 40755 at n = 143 running as long as the next hexagonal number is found the is a triangular AND pentagonal number, two.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PE0045

        public PE0045()
        A simple constructor to set number and title.
    • Method Detail

      • solve

        public java.lang.String solve()
        It just needs one loop starting from the given Hn = 40755 at n = 143 running as long as the next hexagonal number is found the is a triangular AND pentagonal number, two.
        Returns:
        the first hexgonal number found
        See Also:
        Mathe.isTriangleNumber(int), Mathe.isPentagonNumber(int)