A379839 Numbers that are the sum + product of some multiset of positive integers > 1. Nonzeros of A379669.
1, 4, 6, 8, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 39, 40, 41, 42, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77
Offset: 1
Keywords
Examples
We have {2,5} with sum + product = 17, so 17 is in the sequence. We have {2,3,5,5} with sum + product = 165, so 165 is in the sequence.
Crossrefs
Programs
-
Mathematica
nn=100; facs[n_]:=If[n<=1,{{}},Join@@Table[Map[Prepend[#,d]&,Select[facs[n/d],Min@@#>=d&]],{d,Rest[Divisors[n]]}]]; Intersection[Range[nn],Total[#]+Times@@#&/@Join@@Array[facs,nn]]
Comments