OFFSET
2,1
EXAMPLE
[ Decimal ] divisors of 15 are (1,3,5,15), 1+3+5+1+5=15.
PROG
(Sage)
def a(n) :
res = 1
m = 2
# A crude bound
while (n-1)*(m.exact_log(n) + 2) * (2 * (isqrt(m)+1)) >= m :
if sum(sum(d.digits(n)) for d in divisors(m)) == m :
res = m
m += 1
return res
# Eric M. Schmidt, Jun 27 2015
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Author's name lost.
EXTENSIONS
Definition corrected by and more terms from Eric M. Schmidt, Jun 27 2015
STATUS
approved