login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A357287 a(n) = number of subsets S of {1,2,...,n} having more than 2 elements such that (sum of least three elements of S) = max(S). 3
0, 0, 0, 0, 0, 0, 4, 8, 20, 48, 92, 168, 340, 576, 1004, 1816, 3012, 4976, 8732, 14024, 22900, 38944, 62156, 99704, 167972, 264912, 423292, 704552, 1108692, 1758592, 2916396, 4565720, 7230852, 11927600, 18655964, 29447560, 48496692, 75672288, 119362956 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,7
LINKS
FORMULA
a(n) = 2*a(n-1) + a(n-2) - 6*a(n-4) - 4*a(n-5) + 16*a(n-6) - 8*a(n-7).
G.f.: (4 x^6)/((-1 + x)^2 (-1 + 2 x^2) (-1 + 4 x^3)).
EXAMPLE
The 4 relevant subsets of {1,2,3,4,5,6} are
{1, 2, 3, 6}, {1, 2, 3, 4, 6}, {1, 2, 3, 5, 6}, and {1, 2, 3, 4, 5, 6}.
MATHEMATICA
s[n_] := s[n] = Select[Subsets[Range[n]], Length[#] >= 3 &];
a[n_] := Select[s[n], #[[1]] + #[[2]] + #[[3]] == #[[-1]] &]
Table[Length[a[n]], {n, 0, 15}]
CROSSREFS
Sequence in context: A009916 A203167 A123861 * A371596 A115099 A060919
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Oct 02 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)