OFFSET
3,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 3..10000
FORMULA
a(n) = A043306(n) - 1. - Amiram Eldar, Apr 16 2021
MATHEMATICA
Table[Plus @@ Flatten[Table[IntegerDigits[n, b], {b, 2, n - 1}]], {n, 3, 36}] (* Alonso del Arte, Mar 28 2009 *)
PROG
(Python)
from sympy.ntheory.digits import digits
def a(n): return sum(sum(digits(n, b)[1:]) for b in range(2, n))
print([a(n) for n in range(3, 59)]) # Michael S. Branicky, Apr 04 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved