OFFSET
1,4
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
FORMULA
a(p) = 0, iff p = 1 or a prime number.
a(p^k) == 2^(k-2)*p for p prime, k > 1. - Michael S. Branicky, Aug 01 2024
EXAMPLE
For n=24, the tree of recurrences "a(d)" is
24
/ / / \ \ \
2 3 4 6 8 12
/ / \ / \ \ \ \ \
2 2 3 2 4 2 3 4 6
/ / / \
2 2 2 3
a(24) = 2 + 3 + a(4) + a(6) + a(8) + a(12)
= 5 + 2 + 2 + 3 + 2 + a(4) + 2 + 3 + a(4) + a(6)
= 14 + 2 + 5 + 2 + 2 + 3
= 28
PROG
(Python)
from sympy import divisors, isprime
def a(n): return sum(di if isprime(di) else a(di) for di in divisors(n)[1:-1])
print([a(n) for n in range(1, 75)]) # Michael S. Branicky, Jul 24 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Tanmaya Mohanty, Jul 24 2024
EXTENSIONS
More terms from Michael S. Branicky, Jul 24 2024
STATUS
approved