OFFSET
1,1
EXAMPLE
52*53/2 mod sigma(52) = 1378 mod 98 = 6 = d(52).
MAPLE
with(numtheory): P:=proc(q) local n;
for n from 1 to q do if (n*(n+1)/2) mod sigma(n)=tau(n) then print(n); fi;
od; end: P(10^6);
MATHEMATICA
Select[Range@ 6600, Function[n, Mod[Total@ First@ #, Total@ Last@ #] == Length@ Last@ # &@ {Complement[Range@ n, #], #} &@ Divisors@ n]] (* faster, or *)
Select[Range@ 6600, Mod[Total[Select[Range[# - 1], Function[m, ! Divisible[#, m]]]], DivisorSigma[1, #]] == DivisorSigma[0, #] &] (* Michael De Vlieger, Apr 27 2016 *)
PROG
(PARI) isok(n) = n*(n+1)/2 % sigma(n) == numdiv(n); \\ Michel Marcus, Apr 29 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Apr 26 2016
STATUS
approved