0

Compute the maximal Ducci cycle length
A Ducci sequence is an \$n\$-tuple sequence obtained by repeatedly applying \$(x_1,x_2,...,x_{n-1},x_n)\to(|x_1-x_2|,...,|x_{n-1}-x_n|,|x_n-x_1|)\$, taking the absolute differences between cyclically adjacent elements, to an initial tuple.
When the initial t...