login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A327657
Number of divisors of n that are 1 or whose prime indices have a common divisor > 1.
3
1, 1, 2, 1, 2, 2, 2, 1, 3, 2, 2, 2, 2, 2, 3, 1, 2, 3, 2, 2, 4, 2, 2, 2, 3, 2, 4, 2, 2, 3, 2, 1, 3, 2, 3, 3, 2, 2, 4, 2, 2, 4, 2, 2, 4, 2, 2, 2, 3, 3, 3, 2, 2, 4, 3, 2, 4, 2, 2, 3, 2, 2, 6, 1, 4, 3, 2, 2, 3, 3, 2, 3, 2, 2, 4, 2, 3, 4, 2, 2, 5, 2, 2, 4, 3, 2, 4, 2, 2, 4, 4, 2, 3, 2, 3, 2, 2, 3, 4, 3, 2, 3, 2, 2, 5
OFFSET
1,3
COMMENTS
A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798. Numbers whose prime indices have a common divisor > 1 are listed in A318978.
FORMULA
a(n) = A000005(n) - A318979(n). - Antti Karttunen, Dec 05 2021
EXAMPLE
The divisors of 90 that are 1 or whose prime indices have a common divisor > 1 are {1, 3, 5, 9}, so a(90) = 4.
MATHEMATICA
Table[Length[Select[Divisors[n], GCD@@PrimePi/@First/@FactorInteger[#]!=1&]], {n, 100}]
PROG
(PARI) A327657(n) = sumdiv(n, d, (1==d)||(gcd(apply(x->primepi(x), factor(d)[, 1]))>1)); \\ Antti Karttunen, Dec 05 2021
CROSSREFS
See link for additional cross-references.
Sequence in context: A175242 A355770 A225843 * A301957 A318874 A001227
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 21 2019
EXTENSIONS
Data section extended up to 105 terms by Antti Karttunen, Dec 05 2021
STATUS
approved