A365070 Number of subsets of {1..n} containing n and some element equal to the sum of two other (possibly equal) elements.
0, 0, 1, 1, 5, 9, 24, 46, 109, 209, 469, 922, 1932, 3858, 7952, 15831, 32214, 64351, 129813, 259566, 521681, 1042703, 2091626, 4182470, 8376007, 16752524, 33530042, 67055129, 134165194, 268328011, 536763582, 1073523097, 2147268041, 4294505929, 8589506814, 17178978145
Offset: 0
Keywords
Examples
The subset {1,3} has no element equal to the sum of two others, so is not counted under a(3). The subset {3,4,5} has no element equal to the sum of two others, so is not counted under a(5). The subset {1,3,4} has 4 = 1 + 3, so is counted under a(4). The subset {2,4,5} has 4 = 2 + 2, so is counted under a(5). The a(0) = 0 through a(5) = 9 subsets: . . {1,2} {1,2,3} {2,4} {1,2,5} {1,2,4} {1,4,5} {1,3,4} {2,3,5} {2,3,4} {2,4,5} {1,2,3,4} {1,2,3,5} {1,2,4,5} {1,3,4,5} {2,3,4,5} {1,2,3,4,5}
Links
- Andrew Howroyd, Table of n, a(n) for n = 0..88
- Steven R. Finch, Monoids of natural numbers, March 17, 2009.
Crossrefs
Programs
-
Mathematica
Table[Length[Select[Subsets[Range[n]], MemberQ[#,n]&&Intersection[#,Total /@ Tuples[#,2]]!={}&]], {n,0,10}]
Formula
First differences of A093971.
Extensions
a(21) onwards added (using A093971) by Andrew Howroyd, Jan 13 2024
Comments