OFFSET
1,1
COMMENTS
For a(7) = 137, a(9) = 1053 and a(10) = 2943 the ratio is 1.
a(27) > 10^11. - Hiroaki Yamanouchi, Mar 17 2015
EXAMPLE
The anti-divisors of 26 are 3, 4, 17.
26 mod 3 = 2; 26 mod 4 = 2; 26 mod 17 = 9; 2 + 2 + 9 = 13 and 26 / 13 = 2.
MAPLE
with(numtheory): P:=proc(q) local a, k, n;
for n from 3 to q do a:=0;
for k from 2 to n-1 do if abs((n mod k)-k/2)<1 then a:=a+(n mod k);
fi; od; if type(n/a, integer) then print(n); fi; od; end: P(10^6);
MATHEMATICA
f[n_] := Block[{ad}, ad[x_] := Cases[Range[2, x - 1], _?(Abs[Mod[x, #] - #/2] < 1 &)]; Plus @@ (Mod[n, #] & /@ ad@ n)]; Select[Range@ 5000, Mod[#, f@ #] == 0 &] (* Michael De Vlieger, Mar 05 2015 *)
PROG
(PARI) isok(n) = (n % sum(k=2, n-1, (n % k)*(abs((n % k)-k/2) < 1))) == 0; \\ Michel Marcus, Mar 06 2015
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Paolo P. Lava, Mar 05 2015
EXTENSIONS
a(13)-a(26) from Hiroaki Yamanouchi, Mar 17 2015
STATUS
approved