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

A077914 Sums of two distinct primes in exactly two ways.

Original entry on oeis.org

16, 18, 20, 22, 26, 28, 32, 62, 68
Offset: 1

Views

Author

Shyam Sunder Gupta, Mar 29 2003

Keywords

Comments

Most likely no more terms. See A117929. - T. D. Noe, Mar 21 2012
Numbers k such that A117929(k) = 2. - Joerg Arndt, Jun 07 2021

Examples

			22 is a term as 22 = 19+3 = 17+5 are the only two ways to express 22 as a sum of two distinct primes.
		

Crossrefs

Cf. A077969 (3 ways), A078299 (4 ways), A080854 (5 ways), A080862 (6 ways).

A080862 Numbers which can be expressed as the sum of two distinct primes in exactly six ways.

Original entry on oeis.org

60, 66, 72, 100, 110, 116, 172, 178, 182, 194, 206, 212, 218, 226, 248, 278, 326, 332, 398
Offset: 1

Views

Author

Shyam Sunder Gupta, Mar 29 2003

Keywords

Comments

Apparently there are no further terms beyond 398. - R. J. Mathar, Oct 01 2021

Examples

			66 is a term as 66 = 37 + 29 = 43 + 23 = 47 + 17 = 53 + 13 = 59 + 7 = 61 + 5 are only the six ways to express 66 as a sum of two distinct primes.
		

Crossrefs

Cf. A077914 (2 ways), A077969 (3 ways), A078299 (4 ways), A080854 (5 ways).

Programs

Formula

{j: A117929(j) = 6}. - R. J. Mathar, Oct 01 2021

A077969 Numbers which can be expressed as the sum of two distinct primes in exactly three ways.

Original entry on oeis.org

24, 30, 34, 40, 44, 46, 52, 56, 58, 98, 122, 128
Offset: 1

Views

Author

Shyam Sunder Gupta, Mar 29 2003

Keywords

Examples

			30 is a term as 30 = 23+7 = 19+11 = 17+13 are the only three ways to express 30 as a sum of three distinct primes.
		

Crossrefs

Cf. A077914 (2 ways), A078299 (4 ways), A080854 (5 ways), A080862 (6 ways).

A078299 Numbers which can be expressed as the sum of two distinct primes in exactly four ways.

Original entry on oeis.org

36, 42, 50, 74, 80, 82, 86, 88, 92, 94, 152, 158
Offset: 1

Views

Author

Shyam Sunder Gupta, Mar 29 2003

Keywords

Examples

			36 is a term as 36 = 31 + 5 = 29 + 7 = 23 + 13 = 19 + 17 are only the four ways to express 36 as a sum of two distinct primes.
		

Crossrefs

Cf. A077914 (2 ways), A077969 (3 ways), A080854 (5 ways), A080862 (6 ways).

A352305 a(n) is the (conjectured) largest even number that can be expressed as the sum of two distinct primes in exactly n ways.

Original entry on oeis.org

6, 38, 68, 128, 158, 188, 398, 362, 458, 542, 632, 692, 602, 992, 808, 908, 1112, 1238, 1412, 1418, 1718, 1544, 1574, 1622, 1682, 2048, 2252, 2018, 2672, 2042, 2558, 2936, 2504, 2978, 2966, 3092, 3218, 3242, 3272, 3506, 3632, 3754, 4022, 4058, 4052, 4412, 4448, 4478
Offset: 0

Views

Author

Ilya Gutkovskiy, Mar 11 2022

Keywords

Examples

			a(5) = 188 because 188 = 7 + 181 = 31 + 157 = 37 + 151 = 61 + 127 = 79 + 109 and it is conjectured that 188 is the last term of A080854.
		

Crossrefs

Extensions

More terms from Hugo Pfoertner, Dec 18 2024

A370090 Numbers that can be expressed in exactly one way as the unordered sum of two distinct primes.

Original entry on oeis.org

5, 7, 8, 9, 10, 12, 13, 14, 15, 19, 21, 25, 31, 33, 38, 39, 43, 45, 49, 55, 61, 63, 69, 73, 75, 81, 85, 91, 99, 103, 105, 109, 111, 115, 129, 133, 139, 141, 151, 153, 159, 165, 169, 175, 181, 183, 193, 195, 199, 201, 213, 225, 229, 231, 235, 241, 243, 253, 259, 265
Offset: 1

Views

Author

Wesley Ivan Hurt, Feb 11 2024

Keywords

Comments

Apparently, a number that is the predecessor or successor of a prime number does not have a sum as defined here, except for a finite number of primes, which may be {7, 11, 13, 37}. - Peter Luschny, Feb 16 2024

Examples

			5 = 2+3; 7 = 2+5; 8 = 3+5; 9 = 2+7; 10 = 3+7 (10 = 5+5 is not considered).
		

Crossrefs

Cf. A117929, A048974, A065091, A067187 (not necessarily distinct).
If we change 1 way (this sequence) we get A077914 (2 ways), A077969 (3 ways), A078299 (4 ways), A080854 (5 ways), and A080862 (6 ways).

Programs

  • Maple
    select(n -> A117929(n) = 1, [seq(1..265)]);  # Peter Luschny, Feb 16 2024
  • Mathematica
    tdpQ[{a_,b_}]:=AllTrue[{a,b},PrimeQ]&&a!=b; Select[Range[300],Count[IntegerPartitions[#,{2}],?tdpQ]==1&] (* _Harvey P. Dale, Dec 30 2024 *)
  • Python
    from sympy import sieve
    from collections import Counter
    from itertools import combinations
    def aupton(max):
        sieve.extend(max)
        a = Counter(c[0]+c[1] for c in combinations(sieve._list, 2))
        return [n for n in range(1, max+1) if a[n] == 1]
    print(aupton(265)) # Michael S. Branicky, Feb 16 2024

A352596 Conjecturally the number of positive even integers that can be expressed as the sum of two distinct primes in exactly n ways.

Original entry on oeis.org

3, 5, 9, 12, 12, 16, 19, 13, 24, 19, 21, 25, 15, 29, 28, 16, 31, 22, 34, 32, 20, 29, 26, 24, 28, 36, 34, 35, 37, 22, 29, 37, 36, 34, 39, 32, 39, 35, 28, 31, 28
Offset: 0

Views

Author

Ilya Gutkovskiy, Mar 22 2022

Keywords

Crossrefs

Showing 1-7 of 7 results.