OFFSET
1,25
COMMENTS
Self-similar in every second and in every third term, i.e., a(n) = a(2n) = a(3n).
Logarithmic since a(b*c) = a(b) + a(c).
Coincidentally, a(n) = A101040(n+78) for 1 < n < 20.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(24) = 0 since 24 = 2*2*2*3.
a(25) = 2 since 25 = 5*5.
a(26) = 1 since 26 = 2*13.
MATHEMATICA
a[n_] := PrimeOmega[n] - IntegerExponent[n, 2] - IntegerExponent[n, 3]; Array[a, 100] (* Amiram Eldar, Jan 16 2022 *)
PROG
(Haskell)
a106799 = a001222 . a065330 -- Reinhard Zumkeller, Nov 19 2015
(PARI) a(n) = bigomega(n) - valuation(n, 2) - valuation(n, 3); \\ Michel Marcus, Jan 16 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, May 17 2005
STATUS
approved