OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..5004 (first 101 terms from Lucas A. Brown)
Lucas A. Brown, Python program.
EXAMPLE
The a(0) = 1 through a(6) = 13 compositions:
() (1) (2) (3) (4) (5) (6)
(11) (21) (22) (23) (24)
(111) (31) (32) (33)
(211) (41) (42)
(1111) (221) (51)
(311) (222)
(2111) (231)
(11111) (321)
(411)
(2211)
(3111)
(21111)
(111111)
MAPLE
p:= proc(n) option remember; nops(ifactors(n)[2]) end:
b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<0, 0,
add((t-> `if`(t<=i, b(n-j, t), 0))(p(j)), j=1..n)))
end:
a:= n-> b(n$2):
seq(a(n), n=0..40); # Alois P. Heinz, Feb 14 2024
MATHEMATICA
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], GreaterEqual@@PrimeNu/@#&]], {n, 0, 10}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Dec 07 2022
EXTENSIONS
a(21) and beyond from Lucas A. Brown, Dec 15 2022
STATUS
approved