function counts = candy_count_vector_sum ( c, n )

  counts = zeros ( c, 1 );

  for i = 1 : n
    ci = mod ( i - 1, c ) + 1;
    counts(ci) = counts(ci) + 1;
  end

  return
end

