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!)
A316492 Numbers k such that the average digit in the concatenation of the numbers from 1 through k is an integer. 0
1, 3, 5, 7, 9, 122, 576, 1422, 1876, 4122, 4576 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Equivalently, numbers k such that A058183(k) divides A037123(k).
4576 is the final term; 4 < A037123(k)/A058183(k) < 5 for all k > 4576.
LINKS
EXAMPLE
9 is a term because the average digit in 123456789 is (1+2+3+4+5+6+7+8+9)/9 = 45/9 = 5 (an integer).
122 is a term because 12345789101112..119120121122 has digit sum 1032 and digit count 258, and 1032/258 = 4 (an integer).
MATHEMATICA
Flatten@ Position[ Divide @@@ Transpose[ Accumulate /@ {Total /@ #, Length /@ #} &@ IntegerDigits@ Range@ 5000], _Integer] (* Giovanni Resta, Aug 12 2018 *)
CROSSREFS
Sequence in context: A364836 A068061 A332970 * A062887 A062886 A319585
KEYWORD
nonn,base,fini,full
AUTHOR
Jon E. Schoenfield, Aug 11 2018
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 July 31 04:10 EDT 2024. Contains 374774 sequences. (Running on oeis4.)