OFFSET
1,1
COMMENTS
In other words, we partition the natural numbers into finite subsets summing to prime numbers.
Every prime number appears at least once in the sequence.
See A338240 for the corresponding {r_n}.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, Colored scatterplot of the first 100000 terms (where the color is function of the number of elements of r_n)
Rémy Sigrist, PARI program for A338141
Wikipedia, Colexicographic order
EXAMPLE
The first terms, alongside the corresponding sets r_n, are:
n a(n) r_n
-- ---- ------------
1 2 {2}
2 3 {3}
3 5 {1, 4}
4 5 {5}
5 7 {7}
6 17 {8, 9}
7 11 {11}
8 13 {13}
9 31 {6, 10, 15}
10 17 {17}
11 19 {19}
12 47 {12, 14, 21}
13 23 {23}
14 41 {16, 25}
15 47 {20, 27}
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Oct 12 2020
STATUS
approved