[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Revisions by Lei Zhou (See also Lei Zhou's wiki page)

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
a(n) is the number of primes p such that p - 6, p + 6 and 2*n - p are also primes.
(history; published version)
#3 by Lei Zhou at Sat Oct 12 17:16:42 EDT 2024
STATUS

editing

proposed

Discussion
Sun Oct 13
00:15
Jason Yuen: What is 2n - q in the name?
#2 by Lei Zhou at Sat Oct 12 17:16:04 EDT 2024
NAME

allocated for Lei Zhou

a(n) is the number of p cases such that p, p - 6, p + 6 and 2n - q are primes.

DATA

0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 3, 2, 3, 4, 1, 3, 3, 0, 4, 4, 2, 2, 3, 3, 3, 6, 3, 4, 6, 0, 5, 5, 1, 6, 4, 3, 5, 6, 4, 3, 9, 3, 2, 8, 2, 4, 7, 2, 4, 3, 3, 5, 5, 6, 4, 9, 4, 4, 11, 2, 5, 10, 1, 4, 4, 4, 4, 4, 5, 2, 7, 4, 4, 9, 2, 5, 6, 0, 6, 7, 5, 3, 6, 5, 1, 10, 7, 4, 9, 2, 5, 9, 2, 6, 5, 4, 5, 4, 4

OFFSET

1,8

COMMENTS

a(n) = 0 only when n = 1, 2, 3, 4, 5, 6, 19, 31, 331, 499

EXAMPLE

for n = 7, it is found when p = 11, p - 6, p, p + 6, and 2n - p are 5, 11, 17, 3, all primes. So a(7) = 1;

for n = 12, it is found,

when p = 11, {p - 6, p, p + 6, 2n - p} = {5, 11, 17, 13}, all primes;

when p = 13, {p - 6, p, p + 6, 2n - p} = {7, 13, 19, 11}, all primes;

when p = 17, {p - 6, p, p + 6, 2n - p} = {11, 17, 23, 7}, all primes;

So a(12) = 3;

for n = 19; 2n = 38 = 7 + 31 = 19 + 19 = 31 + 7, none of p = 7, 19, 31 can make p -6 and p + 6 both prime. Thus a(19) = 0

MATHEMATICA

m = 200; ps = {}; p = 7; While[p = NextPrime[p]; If[PrimeQ[p - 6] && PrimeQ[p + 6], AppendTo[ps, p]]; p < 2*m]; a = {}; Do[ct = 0; k = 0; While[k++; ps[[k]] < n, q = n - ps[[k]]; If[PrimeQ[q], ct++]]; AppendTo[a, ct]; If[ct == 0, AppendTo[b, n]], {n, 2, m, 2}]; a

CROSSREFS

Ref. A006489; Cf. A045917.

KEYWORD

allocated

nonn,easy

AUTHOR

Lei Zhou, Oct 12 2024

STATUS

approved

editing

#1 by Lei Zhou at Sat Oct 12 17:16:04 EDT 2024
NAME

allocated for Lei Zhou

KEYWORD

allocated

STATUS

approved

Starting from Goldbach decomposition of 10 = p + q = 5 + 5, 12 = 7 + 5, and 14 = 7 + 7, a(n) is the first number in A001057 such that if 2n - 6 = p + q, 2n = p' + q', where p' = p + 6 * a(n) and q' = 2n - q' are both primes.
(history; published version)
#3 by Lei Zhou at Wed Oct 09 12:47:18 EDT 2024
STATUS

editing

proposed

Discussion
Wed Oct 09
12:48
Lei Zhou: Should I post this as a single sequence or three separated seqeunces?
#2 by Lei Zhou at Wed Oct 09 12:47:09 EDT 2024
NAME

allocated for Lei Zhou

Starting from Goldbach decomposition of 10 = p + q = 5 + 5, 12 = 7 + 5, and 14 = 7 + 7, a(n) is the first number in A001057 such that if 2n - 6 = p + q, 2n = p' + q', where p' = p + 6 * a(n) and q' = 2n - q' are both primes.

DATA

0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, -1, 1, 1, 0, 1, -1, 0, 1, 0, 1, -1, 0, 2, 0, 0, 0, 0, 1, 1, 0, -1, 1, 1, 1, -2, -1, -1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 1, 1, 0, 1, -1, 0, -2, 0, 1, 0, 0, 2, 0, 1, 0, 1, 2, 1, 1, 0, 1, -2, 1, -2, 1, 1, 0, 1, 1, 1, -1, 2, 1, 1

OFFSET

8,27

COMMENTS

By definition, this sequence starts from n = 8.

Hypothesis: a(n) is defined for all n >= 8 and for all n >=8, the corresponding Goldbach decomposition 2n = p + q has positive primes p and q.

EXAMPLE

When n = 8, 2n = 16. 2n - 6 = 10. 10 = p + q = 5 + 5 (by definition). a(8) = 0, p' = p + a(8) = 5, q' = 2n - p' = 16 - 5 = 11. P' and q' are both primes.

...

When n = 10, 2n = 20. 2n - 6 = 14. 14 = p + q = 7 + 7 (by definition). a(10) = 0, p' = p + a(10) = 7, q' = 2n - p' = 20 - 7 = 13. P' and q' are both primes.

...

When n = 13, 2n = 26. 2n - 6 = 20. 20 = p + q = 7 + 13 (per above evaluation). a(13) = 0, p' = p + a(13) = 7, q' = 2n - p' = 26 - 7 = 19. P' and q' are both primes.

When n = 16, 2n = 32. 2n - 6 = 26. 26 = p + q = 7 + 19 (per above evaluation). a(16) = 1, p' = p + a(16) = 13, q' = 2n - p' = 32 - 13 = 19. P' and q' are both primes. It is tested when a(16) is 0, q' = 25 is not a prime, thus a(16) = 1 is the first number in A001057 that makes both p' and q' primes.

MATHEMATICA

a = {}; p = {5, 7, 7}; Do[Do[n = 6*k - 4 + 2*j; i = 0; While[i++; m = 1/4 + (i - 1/2)*(-1)^i/2; pr = p[[j]] + 6*m; q = n - pr; ! (PrimeQ[pr] && PrimeQ[q])]; p[[j]] = pr; AppendTo[a, m], {j, 1, 3}], {k, 3, 30}]; Print[a]

CROSSREFS

Ref. A001057; Cf. A045917

KEYWORD

allocated

sign,easy

AUTHOR

Lei Zhou, Oct 09 2024

STATUS

approved

editing

#1 by Lei Zhou at Wed Oct 09 12:47:09 EDT 2024
NAME

allocated for Lei Zhou

KEYWORD

allocated

STATUS

approved

a(n) is the number of pairs of primes p+q=2*(n+4) with 5 <= p <= n such that either p+6 or q+6 is also prime.
(history; published version)
#16 by Lei Zhou at Thu Sep 26 10:59:24 EDT 2024
STATUS

editing

proposed

Discussion
Wed Oct 09
13:03
Lei Zhou: Is there anything I'd revise before this one is approved?  Thanks!
#15 by Lei Zhou at Thu Sep 26 10:59:20 EDT 2024
NAME

a(n) is the number of pair pairs of primes p+q=2*(n+4) with 5 <= p <= n such that either p+6 or q+6 is also prime.

#14 by Lei Zhou at Thu Sep 26 10:54:03 EDT 2024
NAME

a(n) is the number of prime pairs pair of primes p+q=2*(n+4) with 5 <= p <= n such that either p+6 or q+6 is also prime.

STATUS

proposed

editing

Discussion
Thu Sep 26
10:59
Lei Zhou: Andrew's suggestion using "pairs of primes" is applied.  I was hesitating of using n or n+4 since if using n, there will be four leading zeros in this sequence.  I am OK with that if that form is more consistent with other sequences in OEIS.  I am sorry I am not familiar with "Similarity" measures in OEIS but I am open if any applies.
#6 by Lei Zhou at Thu Sep 26 09:11:23 EDT 2024
STATUS

editing

proposed