A236107 Nonprimes whose divisors are partition numbers.
1, 15, 22, 77
Offset: 1
Examples
15 is in the sequence because 15 is a nonprime number and the divisors of 15 are 1, 3, 5, 15, which are also partition numbers.
Programs
-
Mathematica
nmax = 1000; pp = PartitionsP[Range[nmax]]; selQ[n_] := Module[{dd = Divisors[n]}, Intersection[pp, dd] == dd]; Select[Range[nmax], !PrimeQ[#] && selQ[#]&] (* Jean-François Alcover, Apr 09 2020 *)
Comments