A281626 a(n) = (sum of trivial divisors of n) - (sum of nontrivial divisors of n).
1, 3, 4, 3, 6, 2, 8, 3, 7, 4, 12, -2, 14, 6, 8, 3, 18, -1, 20, 0, 12, 10, 24, -10, 21, 12, 16, 2, 30, -10, 32, 3, 20, 16, 24, -17, 38, 18, 24, -8, 42, -10, 44, 6, 14, 22, 48, -26, 43, 9, 32, 8, 54, -10, 40, -6, 36, 28, 60, -46, 62, 30, 24, 3, 48, -10, 68, 12
Offset: 1
Keywords
Examples
a(20) = (20+1) - (2+4+5+10) = 0.
Links
- Indranil Ghosh, Table of n, a(n) for n = 1..10000
Programs
-
Magma
[1] cat [2*(n+1) - SumOfDivisors(n): n in [2..100]];
-
Mathematica
Table[If[n == 1, 1, 2 (n + 1) - DivisorSigma[1, n]], {n, 68}] (* Michael De Vlieger, Feb 11 2017 *)
Comments