Problem:
For any finite set X, let β£Xβ£ denote the number of elements in X. Define
Snβ=ββ£Aβ©Bβ£
where the sum is taken over all ordered pairs (A,B) such that A and B are subsets of {1,2,3,β―,n} with β£Aβ£=β£Bβ£. For example, S2β=4 because the sum is taken over the pairs of subsets
(A,B)β{(β
,β
),({1},{1}),({1},{2}),({2},{1}),({2},{2}),({1,2},{1,2})}
giving S2β=0+1+0+0+1+2=4. Let S2021βS2022ββ=qpβ, where p and q are relatively prime positive integers. Find the remainder when p+q is divided by 1000.
Solution:
Answer (245):
For any element x of {1,2,3,β¦,n}, the number of occurrences of x in an intersection of two (not necessarily different) subsets with k elements each is (kβ1nβ1β)2. Using the identity
k=0βnβ(knβ)2=k=0βnβ(knβ)(nβknβ)=(n2nβ)
it follows that the number of occurrences of x in an intersection of two subsets with the same number of elements is
k=1βnβ(kβ1nβ1β)2=k=0βnβ1β(knβ1β)2=(nβ12nβ2β)
Thus
Snβ=n(nβ12nβ2β)
Therefore
Snβ1βSnββ=(nβ22nβ4β)(nβ1)(nβ12nβ2β)nβ=(2nβ4)!(nβ1)!2β
(nβ1)(2nβ2)!(nβ2)!2β
nβ=(nβ1)22n(2nβ3)β
which is always in lowest terms when n is even because 2n=2(nβ1)+2 and 2nβ3=2(nβ1)β1. Substituting n=2022 yields
S2021βS2022ββ=202124044β
4041β
When 4044β
4041+20212 is divided by 1000 , the remainder is the same as the remainder when 44β
41+212=2245 is divided by 1000 . Thus the requested remainder is 245 .
Note: The sequence Snβ is sequence A037965 in the On-Line Encyclopedia of Integer Sequences.
The problems and solutions on this page are the property of the MAA's American Mathematics Competitions