Project Euler

Problem #250

Find the number of non-empty subsets of {1^(1), 2^(2), 3^(3),..., 250250^(250250)}, the sum of whose elements is divisible by 250. Enter the rightmost 16 digits as your answer.