← RoseCode

ROSECODE 363

Cyclic equation

Philippe_57721 · Programming ·

The equation x×y+y×z+z×x=n with 0<xyz has 11 solutions for n=1234:
  • 1×4+4×246+246×1=1234
  • 1×12+12×94+94×1=1234
  • 1×18+18×64+64×1=1234
  • 3×8+8×110+110×3=1234
  • 4×6+6×121+121×4=1234
  • 4×21+21×46+46×4=1234
  • 8×14+14×51+51×8=1234
  • 10×13+13×48+48×10=1234
  • 10×19+19×36+36×10=1234
  • 12×14+14×41+41×12=1234
  • 18×20+20×23+23×18=1234

How many solutions are there for n=3000000 ?

Answer format: count,x,y,z

Example: 11,72,149,880 for n = 1234

[My timing: 65 sec]