For nonnegative integers ( n ) and ( k ) with ( n ≥ k ), let ( S(n, k) ) denote the sum of all ( n/k ), where ( n ) and ( k ) are nonnegative integers with ( n ≥ k ). Find the remainder when ( S(2024, 1012) ) is divided by ( 1000 ). 
a) 24 
b) 26 
c) 28 
d) 30