OFFSET
1,3
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..2000
FORMULA
a( A160922(n)) = 1. - Michel Marcus, Jun 22 2016
EXAMPLE
a(3) = 19 because it is the least number such that (19 + 20 + 21) / (d(19) + d(20) + d(21)) = 60 / (2 + 6 + 4) = 60 / 12 = 5 is integer.
MAPLE
with(numtheory): P:=proc(q) local i, k, n;
for i from 1 to q do for n from 1 to q do
if type(i*(2*n+i-1)/(2*add(tau(n+k), k=0..i-1)), integer)
then print(n); break; fi; od; od; end: P(10^6);
MATHEMATICA
Table[m = 1; While[! Divisible[Sum[m + k, {k, 0, n - 1}], Sum[ DivisorSigma[0, m + k], {k, 0, n - 1}]], m++]; m, {n, 63}] (* Michael De Vlieger, Jun 22 2016 *)
PROG
(PARI) a(n) = {my(m = 1); while (sum(k=0, n-1, m+k) % sum(k=0, n-1, numdiv(m+k)), m++); m; } \\ Michel Marcus, Jun 20 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Jun 16 2016
STATUS
approved