OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..8192
PROG
(Python)
from sympy.ntheory.factor_ import digits
from sympy import factorint, nextprime
from operator import mul
def a053735(n): return sum(digits(n, 3)[1:])
def a048673(n):
f = factorint(n)
return 1 if n==1 else (1 + reduce(mul, [nextprime(i)**f[i] for i in f]))//2
def a(n): return a053735(a048673(n))
print([a(n) for n in range(1, 101)]) # Indranil Ghosh, Jun 12 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 31 2017
STATUS
approved