A379841 Numbers that are the sum + product of some set of positive integers > 1. Positions of nonzeros in A379679.
1, 4, 6, 8, 10, 11, 12, 14, 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, 78
Offset: 1
Keywords
Examples
For sum + product = 14 we have two possibilities: {7} or {2,4}; so 14 is in the sequence.
Crossrefs
Programs
-
Mathematica
nn=100; strfacs[n_]:=If[n<=1,{{}},Join@@Table[Map[Prepend[#,d]&,Select[strfacs[n/d],Min@@#>d&]],{d,Rest[Divisors[n]]}]]; Intersection[Range[nn],Total[#]+Times@@#&/@Join@@Array[strfacs,nn]]