Question: Summation over all positive integers excluding a finite set

Hi,

 

I was wondering if anyone knows how to do a summation over all positive integers up to N (where N is a parameter) excluding a finite subset of values.

 

For instance, how would I sum from 1 to N excluding 2,4,5?

 

Regards,

 

Art

Please Wait...