← RoseCode

ROSECODE 186

Dividing septuplets

gerrob · Programming ·

Find all 1 < a < b < c < d < e < f < g (integer) septuplets for that (a-1)*(b-1)*(c-1)*(d-1)*(e-1)*(f-1)*(g-1)
divides a*b*c*d*e*f*g-1.

Answer format: cnt,s
where cnt is the number of solutions and s is the sum of a+b+c+d+e+f+g values over all solutions.

My timing: 2 min.