PASS A. exact integer identity sum_n f(n-2)g(n) = sum_d ghat(d) sum_m f(dm-2) N=20000 f(k)=((k^2)%101)-50 g=mu: lhs=1392 rhs=1392 equal=True PASS A2. same exchange for shift 0 (control: identity is shift-independent in shape) lhs=-6623 rhs=-6623 equal=True PASS B. f=Lambda: full exchange (D=N) reproduces the direct sum direct=-1830.3731790688 exchange_full=-1830.3731790687 rel_diff=6.19e-14 PASS C. d=2 inner sum is exactly #{powers of 2 <= N} * log 2 (no primes in the even class) psi(N;2,-2)=13.1697964306 != 19*log2=13.1697964306 (#2^k<=N is 19) [portrait N=1000000] direct S = sum Lambda(n-2)mu(n) = -1830.373179 x^(1/5) = 15: truncated exchange D<=x^(1/5) = -533216.765333 (|.|/x = 5.332e-01) remainder with the 1/phi(d) main term, D<=x^(1/5): 1661952.258015 (1.662e+00 x) remainder with the 1/phi(d) main term, D<=N : 2282454.808877 (2.282e+00 x) values of psi(N;d,-2) for the odd squarefree d<=x^(1/5): {1: 999586.597, 2: 13.17, 3: 500144.209, 5: 250155.136, 6: 6.238, 7: 166683.197, 10: 3.466, 11: 99781.774, 13: 83073.409, 14: 0.0, 15: 124969.918} ALL_CHECKS_PASS=True seconds=3.34