OFFSET
1,12
COMMENTS
Number of distinct prime factors p of n such that gpf(n+p) != p, gpf = A006530.
Number of distinct prime factors p of n such that n+p is not p-smooth.
LINKS
Jianing Song, Table of n, a(n) for n = 1..10000
EXAMPLE
a(30) = 2 since the prime factors of 30 are 2,3,5, and we have gpf(30+3) != 3 and gpf(30+5) != 5.
PROG
(PARI) gpf(n) = vecmax(factor(n)[, 1]);
a(n) = my(f=factor(n)[, 1]); sum(i=1, #f, gpf(n+f[i])!=f[i])
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jianing Song, Aug 16 2022
STATUS
approved