OFFSET
0,2
LINKS
Paolo P. Lava, Table of n, a(n) for n = 0..1000
FORMULA
Solutions of the equation sigma((n+1)*(2*k-n)/2) = sigma((n+1)*(2*k+n)/2).
EXAMPLE
a(3) = 79 because sigma(76+77+78+79) = sigma(79+80+81+82) = 576.
MAPLE
with(numtheory): P:= proc(q) local k, n; print(1);
for n from 1 to q do for k from n to q do
if sigma((n+1)*(2*k-n)/2)=sigma((n+1)*(2*k+n)/2)
then print(k); break; fi; od; od; end: P(10^9);
MATHEMATICA
Table[k = n; While[DivisorSigma[1, Sum[k - j, {j, 0, n}]] != DivisorSigma[1, Sum[k + j, {j, 0, n}]], k++]; k, {n, 0, 56}] (* Michael De Vlieger, Aug 30 2016 *)
PROG
(PARI) a(n) = {if (n==0, k = 1, k = n); while (sigma((n+1)*(2*k-n)/2) != sigma((n+1)*(2*k+n)/2), k++); k; }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Aug 30 2016
STATUS
approved