OFFSET
1,3
LINKS
Bert Dobbelaere, Table of n, a(n) for n = 1..172
Bert Dobbelaere, Python program
EXAMPLE
a(3)=2 because A003418(3)=6 divides 2*3 but does not divide 1*2.
MAPLE
A[1]:= 1:
X:=[]:
P:=[]:
S:= [[]]:
for n from 2 to 50 do
F:= ifactors(n)[2];
found:= false;
for t in F do
if member(t[1], P, 'i') then
if t[1]^t[2]>X[i] then
found:= true;
X:= subsop(i=t[1]^t[2], X);
fi
else
found:= true;
X:= [op(X), t[1]];
P:= [op(P), t[1]];
S:= map(t -> ([op(t), 0], [op(t), -1]), S);
fi;
od;
if found then
A[n]:= min(map(x -> chrem(x, X), S[2..-1]));
else A[n]:= A[n-1]
fi;
od:
seq(A[i], i=1..50);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Aug 15 2019
STATUS
approved