Consider S, the set of all positive integers from 1 to N. For each non-empty subset of S, calculate the product of the elements of the subset. Let the sum of all such products be f(N). For example, since the non-empty subsets of {1,2,3} are {1}, {2}, {3}, {1,2}, {2,3}, {1,3} and {1,2,3}, What is the minimum value of N such that f(N)+1 is a multiple of 1000?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
f ( n ) + 1 = ( 1 + 1 ) ( 1 + 2 ) ( 1 + 3 ) ⋯ ( 1 + n ) = ( n + 1 ) ! Then ( n + 1 ) ! must have three fives in its prime factorization, and testing multiples of 5 starting with 5 , we see that n + 1 = 1 ⟹ n = 1 4 .