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-2 of 2 results.

A256707 Number of unordered ways to write n as the sum of two distinct elements of the set {floor(x/3): 3*x-1 and 3*x+1 are twin primes}.

Original entry on oeis.org

1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 4, 3, 5, 5, 5, 3, 3, 5, 5, 5, 5, 3, 5, 6, 5, 2, 3, 5, 6, 2, 1, 3, 7, 4, 3, 4, 5, 5, 5, 3, 5, 3, 4, 3, 3, 5, 4, 3, 3, 4, 5, 2, 5, 4, 5, 6, 4, 5, 6, 5, 7, 3, 4, 5, 4, 6, 3, 3, 4, 4, 5, 3, 3, 2, 5, 5, 2, 4, 6, 7, 7, 4, 6, 6, 6, 6, 3
Offset: 1

Views

Author

Zhi-Wei Sun, Apr 24 2015

Keywords

Comments

Conjecture: a(n) > 0 for all n > 0. Moreover, for any integer m > 10 every positive integer can be written as the sum of two distinct elements of the set {floor(x/m): x-1 and x+1 are twin prime}.
Clearly, the conjecture implies the Twin Prime Conjecture.

Examples

			a(44) = 1 since 44 = 6 + 38 = floor(20/3) + floor(116/3) with {3*20-1,3*20+1} = {59,61} and {3*116-1,3*116+1} = {347,349} twin prime pairs.
a(108) = 1 since 108 = 16 + 92 = floor(50/3) + floor(276/3) with {3*50-1,3*50+1} = {149,151} and {3*276-1,3*276+1} = {827,829} twin prime pairs.
		

Crossrefs

Programs

  • Mathematica
    TQ[n_]:=PrimeQ[3n-1]&&PrimeQ[3n+1]
    PQ[n_]:=TQ[3*n]||TQ[3*n+1]||TQ[3n+2]
    Do[m=0;Do[If[PQ[x]&&PQ[n-x],m=m+1],{x,0,(n-1)/2}];
    Print[n," ",m];Label[aa];Continue,{n,1,100}]

A256558 Number of ways to write n = p + floor(k*(k+1)/4), where p is a prime and k is a positive integer.

Original entry on oeis.org

0, 1, 2, 1, 2, 2, 2, 3, 1, 3, 1, 4, 2, 3, 1, 3, 3, 3, 2, 4, 3, 2, 3, 4, 3, 2, 3, 1, 5, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 3, 5, 3, 2, 6, 2, 5, 4, 4, 1, 6, 3, 4, 3, 3, 3, 5, 3, 4, 4, 2, 3, 6, 4, 5, 4, 2, 3, 5, 3, 5, 6, 2, 4, 6, 4, 5, 3, 3, 5, 5, 6, 3, 6, 2, 3, 6, 4, 4, 7, 3, 3, 5, 5, 3, 3, 2, 6, 6, 4, 5
Offset: 1

Views

Author

Zhi-Wei Sun, Apr 01 2015

Keywords

Comments

Conjecture: (i) a(n) > 0 for all n > 1.
(ii) For any integer m > 4 not equal to 12, each integer n > 1 can be written as p + floor((k^2-1)/m), where p is a prime and k is a positive integer.
We also have some other conjectures on representations n = p + floor(k*(k+1)/m) with m > 4.

Examples

			 a(15) = 1 since 15 = 5 + floor(6*7/4) with 5 prime.
a(420) = 1 since 420 = 419 + floor(2*3/4) with 419 prime.
a(945) = 1 since 945 = 877 + floor(16*17/4) with 877 prime.
		

Crossrefs

Programs

  • Mathematica
    Do[r=0;Do[If[PrimeQ[n-Floor[k(k+1)/4]],r=r+1],{k,1,(Sqrt[16n+1]-1)/2}];Print[n," ",r];Continue,{n,1,100}]
Showing 1-2 of 2 results.