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!)
A353552 Primes p such that Sum_{k=PreviousPrime(p)..p} d(k) = Sum_{k=p..NextPrime(p)} d(k), where d(k) is the number of divisors function A000005. 4
1871, 2141, 2677, 2777, 2903, 2963, 3673, 4969, 5107, 5417, 6323, 7487, 10459, 11173, 11497, 11689, 14519, 18047, 18077, 19081, 19379, 20357, 20533, 20611, 21577, 22619, 25621, 32621, 34543, 35531, 36821, 39089, 39503, 40111, 40771, 44263, 44647, 44917, 51551, 52181 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
It doesn't matter if terms or the neighboring primes are included in the sums or excluded as long as the symmetry is taken into account.
If A133760(n) = A133760(n-1), then A000040(n) is a term.
LINKS
EXAMPLE
a(2) = 2141 (a prime); previous prime is 2137; next prime is 2143.
The numbers of divisors between are:
+ d(2138) = 4 + d(2142) = 24
+ d(2139) = 8
+ d(2140) = 12
------------------------------------------
sum = 24 sum = 24 Sums are equal. Thus 2141 is a term.
MATHEMATICA
Select[Prime[Range[5000]], Total[DivisorSigma[0, Range[NextPrime[#, -1], #]]] == Total[DivisorSigma[0, Range[#, NextPrime[#]]]] &] (* Amiram Eldar, May 11 2022 *)
PROG
(Python)
from sympy import sieve as A000040, divisor_count as A000005
def sotsb(a, b): return sum(A000005(n) for n in range(a+1, b))
# sotsb stands for the "sum of taus strictly between (a and b)"
print([A000040[n] for n in range(2, 5400) if sotsb(A000040[n-1], A000040[n]) == sotsb(A000040[n], A000040[n+1])])
(PARI) isok(p) = isprime(p) && sum(k=precprime(p-1), p, numdiv(k)) == sum(k=p, nextprime(p+1), numdiv(k)); \\ Michel Marcus, May 11 2022
CROSSREFS
Cf. A353553 (sum of three sets are equal), A353554 (sum of four sets are equal).
Sequence in context: A306877 A073495 A073489 * A232040 A054817 A270244
KEYWORD
nonn
AUTHOR
Karl-Heinz Hofmann, May 10 2022
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 13 12:01 EDT 2024. Contains 375138 sequences. (Running on oeis4.)