login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A093321
a(1) = 1; for m >= 2, a(m) =sum_{primes p<m which do not divide m} a(pi(p)), where pi(p) is the order of p among the primes = the number of primes <= p.
2
1, 0, 1, 0, 1, 1, 2, 1, 2, 0, 2, 2, 3, 3, 3, 3, 4, 5, 6, 5, 7, 5, 7, 8, 8, 7, 9, 8, 9, 7, 9, 10, 10, 8, 10, 10, 11, 11, 12, 11, 13, 15, 16, 17, 18, 16, 19, 21, 22, 20, 20, 20, 22, 24, 23, 24, 24, 24, 25, 27, 29, 31, 34, 33, 32, 32, 34, 37, 38, 38, 40, 44, 45, 49, 51, 50, 51, 50, 52, 55
OFFSET
1,7
MATHEMATICA
PrimeFactors[n_Integer] := Flatten[ Table[ # [[1]], {1}] & /@ FactorInteger[n]]; a[1] = 1; a[n_] := a[n] = (Plus @@ (a[ # ] & /@ Complement[ Range[ PrimePi[n]], PrimePi[ PrimeFactors[n]]])); Table[ a[n], {n, 80}] (* Robert G. Wilson v, May 04 2004 *)
CROSSREFS
Sequence in context: A325033 A333626 A117448 * A302015 A046144 A335904
KEYWORD
nonn,easy
AUTHOR
Leroy Quet, Apr 26 2004
EXTENSIONS
More terms from Robert G. Wilson v, May 04 2004
STATUS
approved