Let S be a subset of 1,2,3,…,3000 such that the following two conditions hold:
What is the maximum possible number of elements in S?
748
749
750
751
752