OFFSET
0,3
LINKS
MATHEMATICA
a[n_]:=Numerator[Mean[IntegerDigits[n]]]; Array[a, 85, 0]
PROG
(Python)
from math import gcd
def A371383(n): return (l:=sum(map(int, (s:=str(n)))))//gcd(l, len(s)) # Chai Wah Wu, Mar 22 2024
CROSSREFS
KEYWORD
nonn,base,easy,frac
AUTHOR
Stefano Spezia, Mar 20 2024
STATUS
approved