OFFSET
1,2
COMMENTS
Equals row sums of triangle A143517. - Gary W. Adamson, Aug 22 2008
FORMULA
Dirichlet g.f.: primezeta(s-1)/zeta(s). - Benedict W. J. Irwin, Jul 11 2018
a(n) = Sum_{p|n} p*mu(n/p), where p is prime. - Ridouane Oudra, Nov 12 2019
EXAMPLE
MAPLE
MATHEMATICA
a[n_] := If[n == 1, 0, With[{p = FactorInteger[n][[All, 1]]}, p*MoebiusMu[n/p] // Total]];
Table[a[n], {n, 1, 100}] (* Jean-François Alcover, Jun 13 2023 *)
PROG
(Sage)
def A137851(n):
return add(d*moebius(n//d) for d in divisors(n) if is_prime(d))
[A137851(n) for n in (1..88)] # Peter Luschny, Feb 01 2012
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Gary W. Adamson, Feb 14 2008
EXTENSIONS
More terms from R. J. Mathar, May 23 2008
STATUS
approved