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

A294358 Number of ways to write A294357(n) as a sum of 3 odd primes p+q+r, with p>=q>=r.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16, 18, 20, 21, 27, 28, 33, 35, 37, 42, 46, 50, 53, 56, 62, 64, 68, 76, 77, 89, 91, 95, 101, 106, 110, 115, 122, 124, 129, 132, 133, 134, 142, 154, 157, 160, 170, 175, 186, 187, 190, 197, 209, 210, 212
Offset: 1

Views

Author

Hugo Pfoertner, Oct 29 2017

Keywords

Comments

Records in A007963.

Crossrefs

Formula

a(n) = A007963((A294357(n)-1)/2).

A007963 Number of (unordered) ways of writing 2n+1 as a sum of 3 odd primes.

Original entry on oeis.org

0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 6, 7, 6, 8, 7, 9, 10, 10, 10, 11, 12, 12, 14, 16, 14, 16, 16, 16, 18, 20, 20, 20, 21, 21, 21, 27, 24, 25, 28, 27, 28, 33, 29, 32, 35, 34, 30, 37, 36, 34, 42, 38, 36, 46, 42, 42, 50, 46, 47, 53, 50, 45, 56, 54, 46, 62, 53, 48, 64, 59, 55, 68, 61, 59, 68
Offset: 0

Views

Author

R. Muller

Keywords

Comments

Ways of writing 2n+1 as p+q+r where p,q,r are odd primes with p <= q <= r.
The two papers of Helfgott appear to provide a proof of the Odd Goldbach Conjecture that every odd number greater than five is the sum of three primes. (The paper is still being reviewed.) - Peter Luschny, May 18 2013; N. J. A. Sloane, May 19 2013

Examples

			a(10) = 4 because 21 = 3+5+13 = 3+7+11 = 5+5+11 = 7+7+7.
		

References

  • George E. Andrews, Number Theory (NY, Dover, 1994), page 111.
  • Ivars Peterson, The Mathematical Tourist (NY, W. H. Freeman, 1998), pages 35-37.
  • Paulo Ribenboim, "VI, Goldbach's famous conjecture," The New Book of Prime Number Records, 3rd ed. (NY, Springer, 1996), pages 291-299.

Crossrefs

Cf. A068307, A087916, A294294 (lower bound of scatterplot), A294357, A294358 (records).

Programs

  • Maple
    A007963 := proc(n)
        local a,i,j,k,p,q,r ;
        a := 0 ;
        for i from 2 do
            p := ithprime(i) ;
            for j from i do
                q := ithprime(j) ;
                for k from j do
                    r := ithprime(k) ;
                    if p+q+r = 2*n+1 then
                        a := a+1 ;
                    elif p+q+r > 2*n+1 then
                        break;
                    end if;
                end do:
                if p+2*q > 2*n+1 then
                    break;
                end if;
            end do:
            if 3*p > 2*n+1 then
                break;
            end if;
        end do:
        return a;
    end proc:
    seq(A007963(n),n=0..30) ; # R. J. Mathar, Sep 06 2014
  • Mathematica
    nn = 75; ps = Prime[Range[2, nn + 1]]; c = Flatten[Table[If[i >= j >= k, i + j + k, 0], {i, ps}, {j, ps}, {k, ps}]]; Join[{0, 0, 0, 0}, Transpose[Take[Rest[Sort[Tally[c]]], nn+2]][[2]]] (* T. D. Noe, Apr 08 2014 *)
  • PARI
    a(n)=my(k=2*n+1,s,t); forprime(p=(k+2)\3,k-6, t=k-p; forprime(q=t\2,min(t-3,p), if(isprime(t-q), s++))); s \\ Charles R Greathouse IV, Mar 20 2017
  • Perl
    use ntheory ":all"; sub a007963 { my($n,$c)=(shift,0); forpart { $c++ if vecall { is_prime($) } @; } $n,{n=>3,amin=>3}; $c; }
    say "$ ",a007963(2*$+1) for 0..100; # Dana Jacobsen, Mar 19 2017
    
  • Sage
    def A007963(n):
        c = 0
        for p in Partitions(n, length = 3):
            b = True
            for t in p:
                b = is_prime(t) and t > 2
                if not b: break
            if b : c = c + 1
        return c
    [A007963(2*n+1) for n in (0..77)]   # Peter Luschny, May 18 2013
    

Extensions

Corrected and extended by David W. Wilson

A294294 Conjecturally, all odd numbers greater than a(n) can be represented in more ways by the sum of 3 odd primes p+q+r with p<=q<=r than a(n).

Original entry on oeis.org

7, 11, 15, 19, 23, 25, 31, 35, 37, 43, 45, 49, 55, 61, 63, 69, 75, 79, 81, 85, 87, 91, 99, 105, 111, 117, 129, 135, 141, 147, 159, 165, 171, 177, 195, 201, 207, 219, 225, 231, 237, 255, 261, 267, 279, 285, 291, 297, 309, 315, 321, 339, 345, 351
Offset: 1

Views

Author

Hugo Pfoertner, Oct 27 2017

Keywords

Comments

The sequence provides numerical evidence of the validity of the ternary Goldbach conjecture, i.e. that every odd number >5 can be written as the sum of 3 primes, now proved by A. Helfgott.
The corresponding minimum numbers of representations are provided in A294295.
Empirically, mod(a(n),6) = 3 for all a(n) > 91 and mod(a(n),30) = 15 for all a(n) > 1281.

Examples

			a(1)=7 because all odd numbers > 7 have more representations by sums of 3 odd primes than 7, which has no such representation (A294295(1)=0).
a(2)=11, because all odd numbers > 11 have at least 2 representations p+q+r, e.g. 13=3+3+7=5+5+3 whereas 11=3+3+5 and 9=3+3+3 only have A294295(2)=1 representation.
		

References

  • For references and links see A007963.

Crossrefs

Formula

A007963(k) > A007963((a(n)-1)/2) for all k > (a(n)-1)/2.
Showing 1-3 of 3 results.