OFFSET
1,10
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
Array[DivisorSum[#, 1 &, And[PrimeQ@ #, Mod[#, 3] == 2] &] &, 120] (* Michael De Vlieger, Jul 11 2017 *)
PROG
(Scheme) (define (A005090 n) (if (= 1 n) 0 (+ (A004526 (modulo (A020639 n) 3)) (A005090 (A028234 n))))) ;; Antti Karttunen, Jul 10 2017
(PARI) a(n) = my(f=factor(n)); sum(k=1, #f~, (f[k, 1] % 3) == 2); \\ Michel Marcus, Jul 11 2017
(Python)
from sympy import primefactors
def a(n): return sum(1 for p in primefactors(n) if p%3==2)
print([a(n) for n in range(1, 101)]) # Indranil Ghosh, Jul 11 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Antti Karttunen, Jul 10 2017
STATUS
approved