OFFSET
1,1
EXAMPLE
sigma(14) mod (14 + 10) = 24 mod 24 = 0.
MAPLE
with(numtheory); P:=proc(q, h) local n; for n from 1 to q do
if n+h>0 then if type(sigma(n)/(n+h), integer) then print(n); fi; fi; od; end: P(10^9, 10);
MATHEMATICA
k = 10; Select[Range[Abs@k+1, 10^6], Mod[DivisorSigma[1, #], # + k] == 0 &] (* Vincenzo Librandi, Jul 06 2016 *)
PROG
(Magma) [n: n in [1..2*10^6] | SumOfDivisors(n) mod (n+10) eq 0 ]; // Vincenzo Librandi, Jul 06 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo P. Lava, Jul 06 2016
EXTENSIONS
a(13)-a(23) from Giovanni Resta, Jul 06 2016
STATUS
approved