login
A085045
Smallest k such that tau(n + k) = tau (nk), or 0 if no such number exists, where tau = A000005.
0
2, 1, 5, 2, 3, 134, 3, 4, 11, 2, 3, 548, 2, 1, 3, 2, 5, 402, 2, 316, 1, 38, 3, 1236, 3, 1, 13, 2, 5, 1986, 2, 16, 1, 1, 19, 1644, 2, 1, 13, 716, 4, 1398, 3, 1, 15, 14, 11, 2472, 3, 10, 5, 2, 2, 1146, 23, 4, 1, 14, 3, 11028, 13, 4, 3, 2, 23, 1194, 2, 2, 9, 2
OFFSET
2,1
EXAMPLE
a(4) = 2 as tau(4+2) = tau(6) = 4 and tau(4*2)= tau(8) = 4.
MATHEMATICA
f[n_] := Block[{k = 1}, While[ DivisorSigma[0, n + k] != DivisorSigma[0, n*k], k++ ]; k]; Table[ f[n], {n, 1, 80}]
CROSSREFS
Sequence in context: A205106 A351743 A144019 * A093664 A298212 A087620
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jun 20 2003
EXTENSIONS
Corrected and extended by Antonio G. Astudillo (afg_astudillo(AT)lycos.com), Jun 25 2003
STATUS
approved