login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A094758
Least k <= n such that n*tau(k) = k*tau(n), where tau(n) is the number of divisors of n (A000005).
4
1, 1, 3, 4, 5, 3, 7, 8, 9, 5, 11, 8, 13, 7, 15, 16, 17, 9, 19, 20, 21, 11, 23, 9, 25, 13, 27, 28, 29, 15, 31, 32, 33, 17, 35, 36, 37, 19, 39, 40, 41, 21, 43, 44, 45, 23, 47, 48, 49, 25, 51, 52, 53, 27, 55, 56, 57, 29, 59, 40, 61, 31, 63, 64, 65, 33, 67, 68, 69, 35, 71, 72, 73, 37
OFFSET
1,3
LINKS
EXAMPLE
6*tau(3) = 6*2 = 3*4 = 3*tau(6), hence a(6) = 3.
MAPLE
A094758 := proc(n)
for k from 1 to n do
if n*numtheory[tau](k) = k*numtheory[tau](n) then
return k;
end if;
end do:
end proc: # R. J. Mathar, Nov 15 2019
MATHEMATICA
a[n_] := Module[{k = 1, r = DivisorSigma[0, n]/n}, While[DivisorSigma[0, k]/k != r, k++]; k]; Array[a, 100] (* Amiram Eldar, Aug 19 2019 *)
PROG
(PARI) for(n=1, 75, s=numdiv(n); k=1; while(n*numdiv(k)!=k*s, k++); print1(k, ", "));
CROSSREFS
Cf. A095300 for n such that a(n) < n.
Sequence in context: A373921 A126352 A354998 * A283971 A348173 A100394
KEYWORD
nonn
AUTHOR
Amarnath Murthy, May 30 2004
EXTENSIONS
Edited and extended by Klaus Brockhaus, Jun 01 2004
STATUS
approved