OFFSET
1,2
COMMENTS
All primes are terms. - Ivan N. Ianakiev, Nov 05 2019
All powers of 2 are terms. - Omar E. Pol, Nov 19 2019
EXAMPLE
The partitions of 9 into consecutive parts are [9], [5, 4], [4, 3, 2]. The 4 is a repeated part, so 9 is not in the sequence.
The partitions of 10 into consecutive parts are [10], [4, 3, 2, 1]. There are no repeated parts, so 10 is in the sequence.
MATHEMATICA
Array[If[Or[PrimeQ@ #, IntegerQ@ Log2@ #], #, # Boole[Count[Tally@ Flatten@ Select[IntegerPartitions[#], Union@ Differences@ # == {-1} &], _?(Last@ # > 1 &)] == 0]] /. 0 -> Nothing &, 60] (* Michael De Vlieger, Nov 22 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Nov 04 2019
STATUS
approved