Advertisement
MatsGranvik

Square root bound subsets of the summatory von Mangoldt

Jul 10th, 2019
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. (*Numerators of the partial sums of the Möbius inverse of the \
  2. Harmonic numbers*)(*start*)
  3. Clear[T, n, k, a];
  4. nn = 80;
  5. mm = 14
  6. a[n_] := If[n < 1, 0, Sum[d MoebiusMu@d, {d, Divisors[n]}]]
  7. TableForm[
  8. M = Table[
  9. Table[Sum[If[n >= k, a[GCD[n, k]], 0], {n, 1, m}]/(k - mm), {k,
  10. 1 + mm, nn}], {m, 1, nn}]];
  11. TableForm[
  12. Table[Table[If[M[[n, k]] == -1, 1, 0], {k, 1, n}], {n, 1, nn - mm}]];
  13. Sign[Sum[Table[If[M[[n, k]] == -1, 1, 0], {k, 1, nn - mm}], {n, 1,
  14. nn - mm}]]
  15. Flatten[Position[%, 1]]
  16. Select[Range[900], PrimeQ[# + mm] &][[-1 + Range[Length[%]]]]
  17. %% - %
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement