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!)
A360324 Numbers k such that k divides Sum_{i=1..k} 10^(1 + floor(log_10(p(i)))) - 1 - p(i), where p(i) is the i-th prime number. 0
1, 13, 313, 1359, 245895, 131186351, 468729047, 1830140937 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Alternative Name : The arithmetic mean of the first k 9's complements of primes is an integer.
LINKS
FORMULA
k: (Sum_{i=1..k} 10^(1 + floor(log_10(p(i)))) - 1 - p(i)) / k = c, c an integer.
EXAMPLE
k = 13: first 13 prime numbers are {2,3,5,7,11,13,17,19,23,29,31,37,41}, their 9's complements are {7,6,4,2,88,86,82,80,76,70,68,62,58} and (7 + 6 + ... + 62 + 58) / 13 = 53, thus 13 is a term.
MATHEMATICA
s = 0; p = 2; pow = 10; seq = {}; Do[s += pow - 1 - p; If[Divisible[s, k], AppendTo[seq, k]]; p = NextPrime[p]; If[p > pow, pow *= 10], {k, 1, 250000}]; seq (* Amiram Eldar, Feb 04 2023 *)
CROSSREFS
Sequence in context: A183522 A119131 A217674 * A241022 A331647 A331644
KEYWORD
nonn,more
AUTHOR
Ctibor O. Zizka, Feb 04 2023
EXTENSIONS
a(5)-a(8) from Amiram Eldar, Feb 04 2023
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 23 09:31 EDT 2024. Contains 374547 sequences. (Running on oeis4.)