OFFSET
1,3
COMMENTS
At each step, the differences are re-sorted and used exactly once, so the remaining number is strictly smaller while staying positive. The number of steps is <= tau(n) - 1 = A032741(n).
LINKS
Felix Huber, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(6) = 2: {1, 2, 3, 6} -> {1, 3} -> {2}.
a(8) = 1: {1, 2, 4, 8} -> {1, 2, 4} -> {1, 2} -> {1}.
a(14) = 2: {1, 2, 7, 14} -> {1, 5, 7} -> {2, 4} -> {2}.
MAPLE
MATHEMATICA
A392093[n_] := First[NestWhile[Union[Differences[#]] &, Divisors[n], Length[#] > 1 &]];
Array[A392093, 100] (* Paolo Xausa, Jan 20 2026 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Felix Huber, Jan 16 2026
STATUS
approved
