%I #3 Sep 08 2022 08:45:30
%S 104161,169313,449381,751753,857321,915029,937789,976501,981049,
%T 986581,1138901,1159889,1219469,1370921,1488749,1881949,1903289,
%U 1980073,2246129,2329949,2356609,2422093,2514389,2602429,2752921,2857369
%N Balanced primes q such that p = (r+q+s-1)/2 is a balanced prime, where r, q, s are consecutive primes.
%C The primes p arising here are in A129242.
%C Subsequence of A129190, where q need not be balanced.
%e 104149, 104161, 104173 are consecutive primes and 104161 = A006562(446) is a balanced prime (distance 12). (104149+104161+104173-1)/2 = 156241 = A006562(629) is a balanced prime, it has distance 12 to the preceding prime 156229 and to the next prime 156253. Hence 104161 is a term.
%o (Magma) [ q: q in PrimesInInterval(3, 2900000) | r+s eq 2*q and IsPrime(p) and PreviousPrime(p)+NextPrime(p) eq 2*p where p is (r+q+s-1) div 2 where r is PreviousPrime(q) where s is NextPrime(q) ];
%Y Cf. A006562 (balanced primes), A129190, A129242.
%K nonn
%O 1,1
%A _Klaus Brockhaus_, Apr 05 2007