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.

A083339 a(n) is the number of distinct prime factors of n that occur in partitions into two primes when n is even and into three primes when n is odd.

Original entry on oeis.org

0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 2, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 2, 1, 2, 0, 0, 1, 2, 0, 0, 0, 0, 0, 2, 1, 0, 0, 1, 0, 2, 0, 0, 0, 2, 0, 2, 1, 0, 0, 0, 1, 2, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 1, 2, 0, 2, 0, 0, 0, 1, 1, 0, 0, 2, 1, 2, 0, 0, 0, 2, 0, 2, 1, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 3
Offset: 1

Views

Author

Reinhard Zumkeller, Apr 24 2003

Keywords

Comments

Number of distinct prime factors of n that occur in prime-partitions confirming Goldbach's conjectures. (The original name of this sequence.)
Conjecture: Apart from k=2, A070826(k): 1, 3, 15, 105, 1155, 15015, 255255, gives the positions of records (each equal to k-1). This follows from the conjectured formula. - Antti Karttunen, Sep 14 2017

Examples

			For n = 14 = 2*7 = 3 + 11 = 7 + 7, only one factor of 14 occurs, thus a(14) = 1.
For n = 15 = 3*5 = 2 + 2 + 11 = 3 + 5 + 7 = 5 + 5+ 5, both factors of 15 occur, thus a(15) = 2.
For n = 105 = 3*5*7, with 35 different partitions into three primes, the partition 97 + 5 + 3 contains the prime factors 3 and 5, while the partition 79 + 19 + 7 contains 7, thus all three prime factors of 115 occur and a(115) = 3.
For n = 1155 = 3*5*7*11, among 891 different partitions into three primes, the following four partitions: 1129 + 23 + 3 = 1129 + 19 + 7 = 1109 + 41 + 5 = 1103 + 41 + 11 each have either 3, 5, 7 or 11 as one of their parts, thus a(1155) = 4.
		

Crossrefs

Programs

  • Mathematica
    Table[Count[Union@ Flatten@ Select[IntegerPartitions[n, {2 + Boole[OddQ@ n]}], AllTrue[#, PrimeQ] &], p_ /; Divisible[n, p]], {n, 105}] (* Michael De Vlieger, Sep 16 2017 *)

Formula

If n is even, a(n) = A010051(n/2), if n is an odd prime, a(n) = 0, and for odd composites (conjecturally), a(n) = A001221(n). - Antti Karttunen, Sep 14 2017

Extensions

Name edited and two further examples added by Antti Karttunen, Sep 14 2017

A190353 Goldbach conjecture: number of decompositions of n into an unordered sum of two odd primes (if n even) or three odd primes (if n odd).

Original entry on oeis.org

0, 0, 0, 0, 0, 1, 0, 1, 1, 2, 1, 1, 2, 2, 2, 2, 3, 2, 3, 2, 4, 3, 4, 3, 5, 3, 6, 2, 7, 3, 6, 2, 8, 4, 7, 4, 9, 2, 10, 3, 10, 4, 10, 3, 11, 4, 12, 5, 12, 4, 14, 3, 16, 5, 14, 3, 16, 4, 16, 6, 16, 3, 18, 5, 20, 6, 20, 2, 20, 5, 21, 6, 21, 5, 21, 5, 27, 7, 24
Offset: 1

Views

Author

Daniel Forgues, May 09 2011

Keywords

Comments

This sequence differs from A083338 because A083338 allows 2 as a prime.

Crossrefs

Formula

a(2n) = A002375(n) and a(2n+1) = A007963(n).

A257177 Number of partitions of n into 2 or 3 primes.

Original entry on oeis.org

0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 6, 5, 5, 6, 6, 6, 7, 5, 7, 5, 7, 5, 10, 6, 8, 8, 9, 6, 11, 5, 11, 7, 11, 7, 13, 7, 13, 9, 13, 9, 15, 7, 16, 8, 15, 8, 17, 7, 16, 10, 17, 9, 20, 8, 21, 11, 20, 8, 21, 7, 22, 11, 22, 11, 23, 10, 28, 12, 24, 11
Offset: 1

Views

Author

Robert G. Wilson v, Apr 17 2015

Keywords

Crossrefs

Programs

  • Mathematica
     f[n_] := Length@ IntegerPartitions[n, {2, 3}, Prime@ Range@ PrimePi@ n]; Array[f, 80]
Showing 1-3 of 3 results.