A321301 Lexicographically last sequence of positive integers whose terms can be grouped and summed to produce the natural numbers as well as the prime numbers.
1, 1, 1, 2, 1, 4, 5, 2, 4, 7, 8, 5, 4, 10, 3, 8, 11, 1, 13, 9, 5, 15, 9, 7, 17, 7, 11, 19, 7, 13, 21, 7, 15, 23, 5, 19, 25, 3, 23, 27, 3, 25, 29, 5, 25, 31, 5, 27, 33, 7, 27, 35, 9, 27, 37, 9, 29, 39, 11, 29, 41, 13, 29, 43, 17, 27, 45, 25, 21, 47, 33, 15, 49
Offset: 1
Examples
The first terms of this sequence, alongside the groups summing to the first natural numbers and to the first prime numbers, are: +-+---+-----+-------+---------+-----------+-------------+ - Natural numbers |1| 2 | 3 | 4 | 5 | 6 | 7 | ... +-+-+-+---+-+-------+---------+---+-------+-------------+ - This sequence |1|1|1| 2 |1| 4 | 5 | 2 | 4 | 7 | ... +-+-+-+---+-+-------+---------+---+-------+-------------+ - Prime numbers | 2 | 3 | 5 | 7 | 11 | ... +---+-----+---------+-------------+---------------------+
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..10000
- Rémy Sigrist, PARI program for A321301
Programs
-
PARI
See Links section.
Comments