|
|
A005088
|
|
Number of primes = 1 mod 3 dividing n.
|
|
11
|
|
|
0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 2
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,91
|
|
COMMENTS
|
The first instance of a(n)=2 is for n=91; the first instance of a(n)=3 is for n=1729. 1729 is famously Ramanujan's taxi cab number -- see A001235. - Harvey P. Dale, Jun 25 2013
|
|
LINKS
|
|
|
FORMULA
|
Additive with a(p^e) = 1 if p = 1 (mod 3), 0 otherwise.
(End)
|
|
MAPLE
|
local a, pe;
a := 0 ;
for pe in ifactors(n)[2] do
if modp(op(1, pe), 3)= 1 then
a := a+1 ;
end if;
end do:
a ;
|
|
MATHEMATICA
|
Join[{0}, Table[Count[Transpose[FactorInteger[n]][[1]], _?(Mod[#-1, 3] == 0&)], {n, 2, 100}]] (* Harvey P. Dale, Sep 22 2021 *)
Array[DivisorSum[#, 1 &, And[PrimeQ@ #, Mod[#, 3] == 1] &] &, 91] (* Michael De Vlieger, Jul 11 2017 *)
|
|
PROG
|
|
|
CROSSREFS
|
Cf. A121940 (first number having n such factors).
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|