close
login
A210679
Number of distinct prime factors <= 7 of n.
6
0, 1, 1, 1, 1, 2, 1, 1, 1, 2, 0, 2, 0, 2, 2, 1, 0, 2, 0, 2, 2, 1, 0, 2, 1, 1, 1, 2, 0, 3, 0, 1, 1, 1, 2, 2, 0, 1, 1, 2, 0, 3, 0, 1, 2, 1, 0, 2, 1, 2, 1, 1, 0, 2, 1, 2, 1, 1, 0, 3, 0, 1, 2, 1, 1, 2, 0, 1, 1, 3, 0, 2, 0, 1, 2, 1, 1, 2, 0, 2, 1, 1, 0, 3, 1, 1
OFFSET
1,6
COMMENTS
Periodic with period length 210. - Amiram Eldar, Sep 16 2023
LINKS
Index entries for linear recurrences with constant coefficients, signature (-3,-5,-6,-6,-5,-3,0,3,5,6,6,5,3,1).
FORMULA
a(n) <= 4.
a(A008364(n)) = 0; a(A080672(n)) > 0.
a(n) = A001221(n) iff n is 7-smooth: a(A002473(n)) = A001221(A002473(n)). [corrected by Amiram Eldar, Sep 16 2023]
From Amiram Eldar, Sep 16 2023: (Start)
Additive with a(p^e) = 1 if p <= 7, and 0 otherwise.
a(n) = A001221(A165743(n)).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 247/210. (End)
MATHEMATICA
Join[{0}, Table[Count[FactorInteger[n][[All, 1]], _?(#<8&)], {n, 2, 100}]] (* Harvey P. Dale, Aug 18 2021 *)
a[n_] := PrimeNu[GCD[n, 210]]; Array[a, 100] (* Amiram Eldar, Sep 16 2023 *)
PROG
(Haskell)
a210679 = length . takeWhile (<= 7) . a027748_row
(PARI) a(n) = omega(gcd(n, 210)); \\ Amiram Eldar, Sep 16 2023
CROSSREFS
Number of distinct prime factors <= p: A171182 (p=3), A178146 (p=5), this sequence (p=7).
Sequence in context: A336386 A378622 A279126 * A143262 A379590 A382630
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Apr 01 2012
STATUS
approved