OFFSET
1,6
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
Michael De Vlieger, Log log scatterplot of a(n), n = 2..2^20, ignoring a(1) = 0, with a color code where red indicates omega(n) = 2, gold omega(n) = 3, lime green = omega(n) = 4, spring green = omega(n) = 5, and blue = omega(n) = 6, where omega = A001221.
FORMULA
a(1) = 0; a(k) = 1 for k in A246655.
MATHEMATICA
{0}~Join~Table[facs = FactorInteger[n][[All, 1]]; r = Times @@ facs;
Floor[(1/PrimeNu[n]!)*Times @@ Map[Log[#, n] + 1 &, facs]] -
Count[Range[n], _?(Times @@ FactorInteger[#][[All, 1]] == r &)], {n, 2, 120}]
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Aug 14 2024
STATUS
approved