MatsGranvik

The Floor function and roots of unity

May 8th, 2022 (edited)
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Clear[n, k, s, nn];
  2. nn = 22;
  3. FullSimplify[
  4. Table[Sum[-1/2 + (1 + n)/k +
  5. I/(2*Pi)*Log[-Exp[2*Pi*I*(1 + n)/k]], {k, 1, n}], {n, 1, nn}]]
  6. Accumulate[DivisorSigma[0, Range[nn]]]
  7. Chop[N[%% - %]]
  8.  
  9. Clear[n, k, s, nn];
  10. nn = 22;
  11. FullSimplify[
  12. Table[Table[-1/2 + (1 + n)/k +
  13. I/(2*Pi)*Log[-((-1)^(2*(1 + n)/k))], {k, 1, nn}], {n, 1, nn}]]
  14. Table[Table[Floor[n/k], {k, 1, nn}], {n, 1, nn}]
  15. Chop[N[%% - %]]
  16.  
  17. https://math.stackexchange.com/a/4445905/8530
Add Comment
Please, Sign In to add comment