OFFSET
3,1
COMMENTS
See A066272 for definition of anti-divisor. Offset is 3 because 1 and 2 have no anti-divisors.
LINKS
Paolo P. Lava, Table of n, a(n) for n = 3..10000
EXAMPLE
The anti-divisors of 7 are 2,3 and 5, so a(7)=30.
The anti-divisors of 9 are 2 and 6, so a(9)=6.
MATHEMATICA
a096357[n_] := Module[{ad},
ad := Cases[Range[2, n - 1], _?(Abs[Mod[n, #] - #/2] < 1 &)];
If[Length[ad] == 0, 0, LCM @@ ad]] (* Michael De Vlieger, Aug 09 2014*)
PROG
(Python)
from sympy import lcm
A096357 = [lcm([d for d in range(2, n, 2) if n%d and not 2*n%d]+[d for d in range(3, n, 2) if n%d and 2*n%d in [d-1, 1]]) for n in range(3, 10**5)] # Chai Wah Wu, Aug 09 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Jun 30 2004
EXTENSIONS
Offset changed by N. J. A. Sloane, Aug 22 2014
STATUS
approved