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!)
A371384 a(n) is the denominator of the arithmetic mean of the digits of n. 5
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,11
LINKS
MATHEMATICA
a[n_]:=Denominator[Mean[IntegerDigits[n]]]; Array[a, 90, 0]
PROG
(Python)
from math import gcd
def A371384(n): return (l:=len(s:=str(n)))//gcd(l, sum(map(int, s))) # Chai Wah Wu, Mar 22 2024
CROSSREFS
Sequence in context: A196563 A198890 A305831 * A022927 A063435 A262352
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 28 20:13 EDT 2024. Contains 375508 sequences. (Running on oeis4.)