A380521
Primes p such that between p and the next prime there exist 2 distinct integers which are a square and a cube, respectively.
Original entry on oeis.org
7, 23, 113, 32749, 79493, 97327
Offset: 1
113 is a term because between prime 113 and next prime 127 there exists a square 121 and a cube 125.
-
b[n_] := If[IntegerQ@Sqrt@n, 0, p = NextPrime[n^3, -1];
If[Floor[Sqrt[NextPrime[p]]]^2 <= p, 0, p]]; Select[Array[b@# &, 100], # > 0 &]
A380522
Primes p such that between p and the previous prime there exist 2 distinct integers which are a square and a cube, respectively.
Original entry on oeis.org
11, 29, 127, 32771, 79531, 97367
Offset: 1
127 is a term because between prime 127 and previous prime 113 there exists a square 121 and a cube 125.
-
b[n_] := If[IntegerQ@Sqrt@n, 0, p = NextPrime[n^3];
If[Ceiling[Sqrt[NextPrime[p,-1]]]^2 >= p, 0, p]]; Select[Array[b@# &, 1000], # > 0 &]
A380523
Positive cubes k such that there are no primes between k and the nearest square that is not k.
Original entry on oeis.org
8, 27, 125, 32768, 79507, 97336
Offset: 1
125 is a term because it is a cube and there are no primes between 125 and 121, its nearest square.
-
b[n_] := If[IntegerQ@Sqrt@n, 0, p = NextPrime[n^3];
If[Ceiling[Sqrt[NextPrime[p, -1]]]^2 >= p, 0, n^3]];
Select[Array[b@# &, 1000], # > 0 &]
A084289
Primes p such that the arithmetic mean of p and the next prime after p is a true prime power from A025475.
Original entry on oeis.org
3, 7, 61, 79, 619, 1669, 4093, 822631, 1324783, 2411797, 2588869, 2778877, 3243589, 3636631, 3736477, 5527189, 6115717, 6405943, 8720191, 9005989, 12752029, 16056031, 16589317, 18087991, 21743551, 25230511, 29343871, 34586131, 37736431, 39150037, 40056229
Offset: 1
n = prime(9750374) = 174689077, next prime = 174689101, mean = 174689089 = 13217^2, a prime power. The arithmetic mean of two consecutive primes is never prime, while between two consecutive primes, prime powers occur. These prime powers are in the middle of gap: p+d/2 = q^w. The prime power is most often square and very rarely occurs more than once (see A053706).
-
fi[x_] := FactorInteger[x] ff[x_] := Length[FactorInteger[x]] Do[s=(Prime[n]+Prime[n+1])/2; s1=ff[s]; If[Equal[s1,1],Print[{n,p=Prime[n],s,fi[s],s-p,s1}]], {n,1,10000000}]
Select[Partition[Prime[Range[25*10^5]],2,1],PrimePowerQ[Mean[#]]&][[;;,1]] (* Harvey P. Dale, Oct 15 2023 *)
A380405
Squares k such that there are no primes between k and the nearest cube that is not k.
Original entry on oeis.org
9, 25, 121, 32761, 79524, 97344
Offset: 1
121 is a term because it is a square and there are no primes between 123 and 125, its nearest cube.
-
b[n_] := If[IntegerQ@Sqrt@n, 0, p = NextPrime[n^3];
q = Ceiling[Sqrt[NextPrime[p, -1]]]; If[q^2 >= p, 0, q]];
Select[Array[b@# &, 1000], # > 0 &]^2
Comments