OFFSET
1,5
COMMENTS
a(n) has a symmetric representation.
FORMULA
a(n) = A048050(2*n-1).
EXAMPLE
For n = 5 the 5th odd number is 9 and the divisors of 9 are [1, 3, 9] and the sum of the divisors of 9 except the smaller and the largest is 3, so a(5) = 3.
For n = 6 the 6th odd number is 11 and the divisors of 11 are [1, 11] and the sum of the divisors of 11 except the smaller and the largest is 0, so a(6) = 0.
MATHEMATICA
a[1] = 0; a[n_] := DivisorSigma[1, 2*n - 1] - 2*n; Array[a, 100] (* Amiram Eldar, Aug 19 2021 *)
PROG
(Python)
from sympy import divisors
def a(n): return sum(divisors(2*n-1)[1:-1])
print([a(n) for n in range(1, 79)]) # Michael S. Branicky, Aug 19 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Aug 18 2021
STATUS
approved