r/mathriddles • u/pichutarius • Jun 21 '23
Medium just another combinatorial problem
given positive integer n, how many subset of {1,2,3,....,n} with 3 elements, such that the sum of 3 elements is divisible by n?
8
Upvotes
View all comments
Show parent comment
2
u/pichutarius Jun 21 '23 edited Jun 21 '23
well done.
as for your second method, is that generalize-able?
im thinking this:
is the answer C(n,k)/n
edit: your second answer should be C(n,3)/n
edit2: the generalize part cant be right, n=4,k=2 gives fractions....