Sum and product puzzle: Difference between revisions
Content added Content deleted
Line 2,139: | Line 2,139: | ||
% The number X+Y has only one sum decomposition for which fact 2 is true. |
% The number X+Y has only one sum decomposition for which fact 2 is true. |
||
Solutions3 = [[X,Y] : [X,Y] in Solutions2, foreach([XX,YY] in Solutions2, XX + YY = X + Y) XX = X, YY = Y end], |
Solutions3 = [[X,Y] : [X,Y] in Solutions2, foreach([XX,YY] in Solutions2, XX + YY = X + Y) XX = X, YY = Y end], |
||
println(Solutions3). |
println(Solutions3). |
||
</lang> |
</lang> |