// you’re reading...
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 4.67 out of 5)
Loading...

Project Euler Solutions

Project Euler 135 Solution

Project Euler 135 Solution

Project Euler 135: Same differences


Problem Description

Given the positive integers, x, y, and z, are consecutive terms of an arithmetic progression, the least value of the positive integer, n, for which the equation, x2y2z2 = n, has exactly two solutions is n = 27:

342 − 272 − 202 = 122 − 92 − 62 = 27

It turns out that n = 1155 is the least value which has exactly ten solutions.

How many values of n less than one million have exactly ten distinct solutions?

Analysis

Concept code. More later.

Project Euler 135 Solution

Runs < 1 seconds in Python 2.7.

download arrowUse this link to get the Project Euler 135 Solution Python 2.7 source.

Afterthoughts

    No afterthoughts yet.
Project Euler 135 Solution last updated

Discussion

One Response to “Project Euler 135 Solution”

  1. When the concept code ?

    Posted by Mellatora | March 20, 2012, 11:19 AM

Post a comment