OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
The divisors of 968 split into consecutive divisibility chains {{1, 2, 4, 8}, {11, 22, 44, 88}, {121, 242, 484, 968}}, so a(968) = 4.
MAPLE
f:= proc(n) local F, L, d, i;
F:= sort(convert(numtheory:-divisors(n), list));
d:= nops(F);
L:= Vector(d);
L[1]:= 1;
for i from 2 to d do
if F[i] mod F[i-1] = 0 then L[i]:= L[i-1]+1
else L[i]:= 1
fi
od;
max(L)
end proc:
map(f, [$1..100]); # Robert Israel, Apr 20 2023
MATHEMATICA
Table[Max@@Length/@Split[Divisors[n], Divisible[#2, #1]&], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 06 2019
STATUS
approved