cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-4 of 4 results.

A235727 Odd primes p with (p^2 - 1)/4 - prime((p - 1)/2) and (p^2 - 1)/4 + prime((p - 1)/2) both prime.

Original entry on oeis.org

7, 11, 19, 23, 41, 73, 83, 109, 197, 211, 229, 271, 379, 461, 541, 631, 641, 659, 859, 991, 1031, 1049, 1051, 1093, 1103, 1217, 1429, 1451, 1879, 2063, 2131, 2287, 2341, 2411, 3019, 3257, 3461, 3659, 3673, 3691, 3709, 3917, 3967, 4409, 4463, 4519, 5279, 5303, 5471, 5477
Offset: 1

Views

Author

Zhi-Wei Sun, Jan 15 2014

Keywords

Comments

By the conjecture in A235728, this sequence should have infinitely many terms.

Examples

			a(1) = 7 since neither (3^2-1)/4 - prime((3-1)/2) = 1 nor (5^2-1)/4 + prime((5-1)/2) = 9 is prime, but (7^2-1)/4 - prime((7-1)/2) = 12 - 5 = 7 and (7^2-1)/4 + prime((7-1)/2) = 12 + 5 = 17 are both prime.
		

Crossrefs

Programs

  • Mathematica
    q[n_]:=q[n]=PrimeQ[n(n+1)-Prime[n]]&&PrimeQ[n(n+1)+Prime[n]]
    n=0;Do[If[q[(Prime[k]-1)/2],n=n+1;Print[n," ",Prime[k]]],{k,2,1000}]

A235681 Primes p with prime(p) - p + 1 and p*(p+1) - prime(p) both prime.

Original entry on oeis.org

2, 3, 5, 41, 61, 71, 89, 271, 281, 293, 337, 499, 571, 751, 907, 911, 1093, 1531, 2027, 2341, 2707, 2861, 3011, 3359, 3391, 3511, 4133, 5179, 5189, 5483, 5573, 5657, 5867, 6577, 6827, 7159, 7411, 7753, 7879, 8179, 8467, 9209, 9391, 9419, 9433, 10259, 10303, 10859, 10993, 11287
Offset: 1

Views

Author

Zhi-Wei Sun, Jan 13 2014

Keywords

Comments

This is the intersection of A234695 and A235661. For any prime p in this sequence, p^2 + 1 is the sum of the two primes prime(p) - p + 1 and p*(p+1) - prime(p).
By the conjecture in A235682, this sequence should have infinitely many terms.

Examples

			a(1) = 2 since prime(2) - 2 + 1 = 2 and 2*3 - prime(2) = 3 are both prime.
a(2) = 3 since prime(3) - 3 + 1 = 3 and 3*4 - prime(3) = 7 are both prime.
a(3) = 5 since prime(5) - 5 + 1 = 7 and 5*6 - prime(5) = 19 are both prime.
		

Crossrefs

Programs

  • Mathematica
    PQ[n_]:=PrimeQ[Prime[n]-n+1]&&PrimeQ[n(n+1)-Prime[n]]
    n=0;Do[If[PQ[Prime[k]],n=n+1;Print[n," ",Prime[k]]],{k,1,1000}]

A235728 a(n) = |{0 < k < n - 2: 2*m + 1, m*(m+1) - prime(m) and m*(m+1) + prime(m) are all prime with m = phi(k) + phi(n-k)/2}|, where phi(.) is Euler's totient function.

Original entry on oeis.org

0, 0, 0, 0, 0, 2, 3, 2, 4, 4, 4, 4, 4, 5, 3, 6, 4, 7, 4, 3, 6, 5, 6, 4, 7, 4, 7, 3, 5, 5, 5, 6, 6, 6, 3, 6, 3, 4, 2, 2, 4, 3, 4, 5, 4, 3, 6, 4, 2, 4, 2, 4, 3, 3, 6, 4, 2, 6, 8, 6, 10, 4, 6, 7, 4, 6, 6, 8, 6, 6, 2, 9, 5, 9, 10, 12, 4, 10, 6, 10, 6, 9, 5, 11, 10, 7, 10, 10, 6, 9, 11, 7, 8, 8, 13, 6, 5, 5, 6, 9
Offset: 1

Views

Author

Zhi-Wei Sun, Jan 15 2014

Keywords

Comments

Conjecture: (i) a(n) > 0 for all n > 5, and a(n) = 1 only for n = 191.
(ii) If n > 8 is not equal to 32, then there is a positive integer k < n - 2 such that 2*m + 1, m*(m+1) - prime(m) and m*(m+1) + prime(m) are all prime, where m = sigma(k) + phi(n-k)/2, and sigma(k) is the sum of all positive divisors of k.
(iii) If n > 444, then there is a positive integer k < n such that 2*m + 1, m^2 - prime(m) and m^2 + prime(m) are all prime, where m = sigma(k) + phi(n-k).
Clearly, part (i) of the conjecture implies that there are infinitely many odd primes p = 2*m + 1 with m*(m+1) - prime(m) = (p^2-1)/4 - prime((p-1)/2) and m*(m+1) + prime(m) = (p^2-1)/4 + prime((p-1)/2) both prime.

Examples

			a(6) = 2 since phi(1) + phi(5)/2 = phi(3) + phi(3)/2 = 3 with 2*3 + 1 = 7, 3*4 - prime(3) = 7 and 3*4 + prime(3) = 17 all prime.
a(191) = 1 since phi(153) + phi(38)/2 = 105 with 2*105 + 1 = 211, 105*106 - prime(105) = 11130 - 571 = 10559 and 105*106 + prime(105) = 11130 + 571 = 11701 all prime.
		

Crossrefs

Programs

  • Mathematica
    q[n_]:=PrimeQ[2n+1]&&PrimeQ[n(n+1)-Prime[n]]&&PrimeQ[n(n+1)+Prime[n]]
    f[n_,k_]:=EulerPhi[k]+EulerPhi[n-k]/2
    a[n_]:=Sum[If[q[f[n,k]],1,0],{k,1,n-3}]
    Table[a[n],{n,1,100}]

A233539 a(n) = |{0 < k < n-2: m - 1, m + 1, prime(m) - m and prime(m) + m are all prime with m = phi(k) + phi(n-k)/2}|, where phi(.) is Euler's totient function.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 3, 2, 4, 2, 4, 4, 2, 4, 3, 5, 1, 4, 2, 3, 1, 2, 2, 2, 1, 1, 0, 0, 1, 4, 0, 1, 2, 0, 5, 2, 4, 4, 1, 3, 3, 3, 2, 3, 8, 2, 2, 3, 5, 5, 4, 3, 5, 3, 4, 3, 1, 3, 8, 4, 5, 4, 2, 6, 0, 12, 2, 4, 1, 5, 0, 4, 1, 4, 3, 3, 2, 5, 4, 7, 5, 3, 11, 1, 5, 4, 3, 4, 6, 2, 2, 5, 5, 6, 4, 4
Offset: 1

Views

Author

Zhi-Wei Sun, Jan 13 2014

Keywords

Comments

Conjecture: (i) a(n) > 0 for all n > 794.
(ii) For any integer n > 59, there is a positive integer k < n such that m = phi(k) + phi(n-k)/4 is an integer with prime(m) - m and prime(m) + m both prime.
Clearly, part (i) of the conjecture implies that there are infinitely many positive integers m with m - 1, m + 1, prime(m) - m and prime(m) + m all prime.

Examples

			a(21) = 1 since phi(6) + phi(15)/2 = 6 with 6 - 1 = 5, 6 + 1 = 7, prime(6) - 6 = 7 and prime(6) + 6 = 19 all prime.
a(25) = 1 since phi(17) + phi(8)/2 = 18 with 18 - 1 = 17, 18 + 1 = 19, prime(18) - 18 = 43 and prime(18) + 18 = 79 all prime.
		

Crossrefs

Programs

  • Mathematica
    q[n_]:=PrimeQ[n-1]&&PrimeQ[n+1]&&PrimeQ[Prime[n]-n]&&PrimeQ[Prime[n]+n]
    f[n_,k_]:=EulerPhi[k]+EulerPhi[n-k]/2
    a[n_]:=Sum[If[q[f[n,k]],1,0],{k,1,n-3}]
    Table[a[n],{n,1,100}]
Showing 1-4 of 4 results.