editing
approved
editing
approved
HarmonicResidue[n_]=Mod[n*DivisorSigma[0, n], DivisorSigma[1, n]]; HarmonicResidue[ Range[ 80]]
Mathematica program completed by Harvey P. Dale, Feb 29 2024
approved
editing
editing
approved
a(n) = A038040(n) - A000203(n) * A240471(n) . - Reinhard Zumkeller, Apr 06 2014
a(n) = A038040(n) - A000203(n) * A240471(n) . - Reinhard Zumkeller, Apr 06 2014
A106315 := proc(n)
modp(n*numtheory[tau](n), numtheory[sigma](n)) ;
end proc:
seq(A106315(n), n=1..100) ; # R. J. Mathar, Jan 25 2017
approved
editing
editing
approved
a(n) = A038040(n) - A000203(n) * A240471(n) . - Reinhard Zumkeller, Apr 06 2014
(Haskell)
a106315 n = n * a000005 n `mod` a000203 n -- Reinhard Zumkeller, Apr 06 2014
Reinhard Zumkeller, <a href="/A106315/b106315.txt">Table of n, a(n) for n = 1..10000</a>
approved
editing
The harmonic residue is the remainder when n*d(n) is divided by sigma(n), where d(n) is the number of divisors of n, and sigma(n) is the sum of the divisors of n. If n is perfect, the harmonic residue of n is 0.
nonn,new
nonn
HarmonicResidue[n_]=Mod[n*DivisorSigma[0, n], DivisorSigma[1, n]]
nonn,new
nonn