login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A371383 a(n) is the numerator of the arithmetic mean of the digits of n. 5
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 4, 9, 5, 11, 6 (list; graph; refs; listen; history; text; internal format)
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
Cf. A004426, A004427, A007953, A055642, A061383, A371384 (denominator).
Sequence in context: A051801 A071205 A066750 * A217928 A326652 A222493
KEYWORD
nonn,base,easy,frac
AUTHOR
Stefano Spezia, Mar 20 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 30 18:33 EDT 2024. Contains 375545 sequences. (Running on oeis4.)