OFFSET
1,2
COMMENTS
If k is not a term, there are only finitely many primes p such that p, p+x_1, ..., p+x_1+...+x_j are all prime, where (x_1,...,x_j) is the k-th composition. If the first Hardy-Littlewood conjecture (or the k-tuple conjecture) is true, the converse also holds and this sequence is a subsequence of A387382.
There are A023189(j+1) terms with 2*j binary digits (with the convention that 0 has 0 digits), corresponding to the admissible prime patterns of diameter 2*j. There are no terms with an odd number of binary digits.
The number of terms less than 2^j is A292225(j+1).
A161781 gives a similar representation of admissible prime tuple patterns (see formula).
LINKS
Pontus von Brömssen, Table of n, a(n) for n = 1..10000
Wikipedia, First Hardy-Littlewood conjecture.
Wikipedia, Prime k-tuple.
EXAMPLE
1 is not a term, because the cumulative sums of the 1st composition (1) are (0,1), which cover both residue classes modulo 2.
2 is a term, because the cumulative sums of the 2nd composition (2) are (0,2), which do not cover all residue classes modulo any prime.
CROSSREFS
KEYWORD
nonn
AUTHOR
Pontus von Brömssen, Aug 29 2025
STATUS
approved
