Project Euler #94: Almost equilateral triangles

  • + 0 comments

    Hints:

    1. Only 30 triangles are possible with perimeter 10^18.
    2. The 2 equal sides for the first 3 triangles are 5, 17, 65.
    3. On how to generate the remaining sides, check A195531
    4. The perimeter can be calculated either by 3a+1 or 3a-1