OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
EXAMPLE
12 has 6 divisors (1,2,3,4,6,12). The number of divisors of each of these divisors of 12 form the sequence (1,2,2,3,4,6). Of these, five divide d(12)=6: 1,2,2,3,6. So a(12) = 5.
MATHEMATICA
Table[Length[Select[Divisors[n], Mod[Length[Divisors[n]], Length[Divisors[ # ]]] == 0 &]], {n, 1, 100}] (* Stefan Steinerberger, Feb 29 2008 *)
PROG
(PARI) A138011(n) = sumdiv(n, d, if(!(numdiv(n)%numdiv(d)), 1, 0)); \\ Antti Karttunen, May 25 2017
(Python)
from sympy import divisors, divisor_count
def a(n): return sum([1*(divisor_count(n)%divisor_count(d)==0) for d in divisors(n)]) # Indranil Ghosh, May 25 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Feb 27 2008
EXTENSIONS
More terms from Stefan Steinerberger, Feb 29 2008
STATUS
approved