Advertisement
MatsGranvik

von Mangoldt function from Dirichlet Characters

Mar 18th, 2015
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. (*Mathematica program start*)
  2. nn = 42;
  3. b = Table[
  4. Exp[MangoldtLambda[Divisors[n]]]^-MoebiusMu[Divisors[n]], {n, 1,
  5. nn}];
  6. j = 1;
  7. A = Table[
  8. Table[Product[(b[[n]][[m]]*
  9. DirichletCharacter[b[[n]][[m]], j, k] - (b[[n]][[m]] -
  10. 1)), {m, 1, Length[Divisors[n]]}], {n, 1, nn}], {k, 1, nn}];
  11. vonMangoldtFunction =
  12. N[Table[Sum[A[[n, k]]/k, {k, 1, nn}], {n, 1, nn}]]
  13. ListLinePlot[vonMangoldtFunction]
  14. (*Mathematica program end*)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement