A175087 Number of numbers whose product of perfect divisors is equal to n.
1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1
Offset: 1
Keywords
Links
Programs
-
Mathematica
With[{nn = 105}, ReplacePart[ConstantArray[0, nn], Flatten@ Table[{i -> 1}, {i, TakeWhile[#, # <= nn &] &@ Union@ Table[Apply[Times, Select[Divisors@ n, Or[# == 1, #^IntegerExponent[n, #] == n] &]], {n, nn}]}] ] ] (* Michael De Vlieger, Nov 21 2017 *)
-
PARI
A175068(n) = { my(m=1); fordiv(n,d,if((d>1)&&(d^valuation(n,d))==n,m*=d)); (m); }; A175087(n) = sum(i=1,n,A175068(i)==n); \\ Antti Karttunen, Nov 21 2017
Formula
a(n) = Sum_{k=1..n} [A175068(k)==n]. - Antti Karttunen, Nov 21 2017
Extensions
More terms from Antti Karttunen, Nov 21 2017
Comments