← RoseCode

ROSECODE 354

FLT near miss

Philippe_57721 · Programming ·

Since Euler, we know that Diophantine equation x3+y3=z3 has no solution.

However, Ramanujan found an infinite set of solutions for equation x3+y3=z3±1

Here is his stunning solution. Let :
X1=[9,10,12]
X2=[791,812,1010]
X3=[65601,67402,83802]

And define Xn+3=82×Xn+2+82×Xn+1Xn

Let xn=Xn[1],yn=Xn[2],zn=Xn[3]

We have xn3+yn3=zn3+(1)n+1

For instance, X4=[5444135,5593538,6954572] and indeed 54441353+55935383=695457231

Find solution for index 123456789101112

Format answer: x,y,z modulo 1015

[My timing: instant]