You are viewing a single comment's thread. Return to all comments →
Arithmetic magic:
remove one cycle 1) a[j] - a[i] = d => a[j] = a[i] + d
remove one cycle 2) a[k] - a[j] = d -> a[k] = d + a[j] => d + d + a[i] = a[i] + 2*d;
a[i] .... a[i]+d ,,....a[i]+2*d .... << sorted ascending
i j k
Seems like cookies are disabled on this browser, please enable them to open this website
Beautiful Triplets
You are viewing a single comment's thread. Return to all comments →
Arithmetic magic:
remove one cycle 1) a[j] - a[i] = d => a[j] = a[i] + d
remove one cycle 2) a[k] - a[j] = d -> a[k] = d + a[j] => d + d + a[i] = a[i] + 2*d;
a[i] .... a[i]+d ,,....a[i]+2*d .... << sorted ascending
i j k