A347494
a(n) is the number of instances where tau(k)|tau(n); n>=1, kA000005.
0, 1, 2, 1, 3, 4, 4, 6, 2, 7, 5, 8, 6, 10, 11, 1, 7, 11, 8, 13, 14, 15, 9, 17, 3, 17, 18, 16, 10, 21, 11, 19, 21, 22, 23, 4, 12, 25, 26, 29, 13, 31, 14, 23, 24, 29, 15, 17, 4, 27, 31, 28, 16, 37, 33, 39, 34, 35, 17, 50, 18, 38, 32, 1, 39, 46, 19, 34, 41, 49, 20, 59
Offset: 1
Keywords
Examples
a(1) = 0 because there is no k < 1 such that tau(k)|tau(1). a(2) = 1, since there is only one instance of tau(k)|tau(2), namely k=1. a(3) = 2, since there are two instances of tau(k)|tau(3), namely k=1 and k=2. a(4) = 3, since there is only one instance of tau(k)|tau(4), namely k=1, etc.
Links
- David A. Corneth, Table of n, a(n) for n = 1..10001
Programs
-
Mathematica
With[{s = DivisorSigma[0, Range[72]]}, Array[Count[Mod[#2, s[[Range[#1 - 1]]]], 0] & @@ {#, s[[#]]} &, Length[s] - 1, 2]] (* Michael De Vlieger, Sep 09 2021 *)
-
PARI
first(n) = {my(l = List(), res = vector(n)); for(i = 1, n, nd = numdiv(i); if(nd > #l, for(i = #l + 1, nd, listput(l, 0) ) ); d = divisors(nd); for(j = 1, #d, res[i] += l[d[j]] ); l[nd]++; ); res } \\ David A. Corneth, Sep 03 2021
Formula
a(prime(m)^(q-1)) = m for m >= 1 and any prime q.
Comments