The Brilliant Set - 1729 Special

Algebra Level 5

I have a set of consecutive natural numbers: $$B=\{1,2,3,\ldots,1728\}$$. The sum of products of elements of $$B$$ taken 2 or more at a time is equals to $$1729! - a$$. Find the sum of digits of $$a$$.

×