A275411 Least k such that sigma(k*n) = sigma(k*n-1), or 0 if no such k exists.
15, 479, 5, 155257, 3
Offset: 1
Examples
a(2) = 479 because sigma(479*2) = sigma(479*2-1).
Programs
-
Mathematica
Table[k = 1; While[DivisorSigma[1, k n] != DivisorSigma[1, k n - 1], k++]; k, {n, 5}] (* Michael De Vlieger, Jul 27 2016 *)
-
PARI
a(n) = {my(k = 2); while (sigma(k*n) != sigma(k*n-1), k++); k; } \\ Michel Marcus, Jul 27 2016
Comments