Answer: 3024
Suppose A={a1,a2,⋯,an}, where a1<a2<⋯<an. For any nonempty set of positive integers B, let l(B) and g(B) denote the least common multiple and the greatest common divisor of all its elements, respectively.
Consider all good partitions (A1,A2) of A. By definition, for all ai∈A1 and aj∈A2, we must have ai≤l(A1)=g(A2)≤aj, so there must exist 1≤k<n such that A1={a1,a2,⋯,ak} and A2={ak+1,⋯,an}. Below we refer to such a partition as the ak partition, and let lk=l(a1,a2,⋯,ak), gk=g(ak+1,⋯,an).
Now, note the following properties:
- Property 1: If both ak−1 and ak are good partitions, then gk−1=gk=ak.
Proof: Note that lk−1=gk−1∣ak, so gk=lk=l(lk−1,ak)=ak, and gk−1=g(ak,gk)=ak.
- Property 2: Among ak−1, ak and ak+1, at least one is not a good partition.
Proof: If not, by Property 1, ak=gk=ak+1, a contradiction.
- Property 3: a1 and a2 cannot both be good partitions. Likewise, an−2 and an−1 cannot both be good partitions.
Proof: If both a1 and a2 are good partitions, then by Property 1, a2=g1=l1=a1, a contradiction. The second part is similar.
Now, suppose ∣A∣=n. By Property 3, at most one of {a1,a2} is a good partition, and at most one of {an−2,an−1} is a good partition as well. Also, by Property 2, among {a3,⋯,an−3} there are at least [(n−5)/3] partitions that are not good. Combining the above, the number of good partitions is at most (n−1)⋅2−⌊3n−5⌋=⌊32(n−2)⌋≥2015, hence n≥3024.
Finally, we show that 3024 indeed satisfies the requirements of the problem. Consider A={2×6i,3×6i,6i+1∣0≤i≤1007}. Then all 3×6i and 6i (except 61007) are good partitions.