login
A392094
a(n) is the number of iterations of process A392093 applied to n required until the remaining single number equals 1.
2
0, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 3, 4, 2, 2, 1, 2, 2, 3, 2, 2, 3, 4, 3, 2, 2, 2, 3, 4, 4, 5, 1, 2, 4, 4, 4, 5, 3, 2, 3, 4, 2, 3, 1, 4, 3, 4, 3, 5, 2, 2, 3, 4, 2, 5, 2, 2, 4, 5, 4, 5, 3, 2, 1, 4, 4, 5, 2, 2, 3, 4, 3, 4, 2, 2, 3, 5, 3, 4, 1, 2, 5, 6, 3, 4, 4, 2, 3
OFFSET
1,3
COMMENTS
Because, in process A392093, the differences are re-sorted at each iteration and used exactly once, the remaining number strictly decreases while staying positive. Hence this process terminates at 1, and a(n) is well defined.
FORMULA
Trivial upper bound: a(n) < n.
a(2^k) = 1 for positive integers k.
EXAMPLE
a(30) = 4 since four iterations of process A392093 are required until the remaining single number equals 1: A392093(A392093(A392093(A392093(30)))) = A392093(A392093(A392093(7))) = A392093(A392093(6)) = A392093(2) = 1.
MAPLE
A392094 := proc(n) local a, k; k := n; a := 0; while 1 < k do k := A392093(k); a := a + 1; end do; return a; end proc: seq(A392094(n), n = 1 .. 88);
MATHEMATICA
A392093[n_] := First[NestWhile[Union[Differences[#]] &, Divisors[n], Length[#] > 1 &]];
A392094[n_] := Length[NestWhileList[A392093, n, # > 1 &]] - 1;
Array[A392094, 100] (* Paolo Xausa, Jan 20 2026 *)
KEYWORD
nonn,easy
AUTHOR
Felix Huber, Jan 16 2026
STATUS
approved