Suppose on the contrary that there exist 40 distinct positive integers in arithmetic progression such that each term can be written as 2k+3l, and denote this sequence by a,a+d,a+2d,…,a+39d, where a,d are positive integers. Let
m=⌊log2(a+39d)⌋,n=⌊log3(a+39d)⌋.
In what follows, we first show that at most one of a+26d,a+27d,…,a+39d cannot be written as 2m+3l or 2k+3n (k,l are nonnegative integers).
Suppose that a+hd cannot be written as 2m+3l or 2k+3n, for some 26≤h≤39. Then, by assumption, a+hd=2b+3c for some nonnegative integers b,c. By the definition of m and n, it is clear that b≤m,c≤n. Since a+hd cannot be written as 2m+3l or 2k+3n, we have b≤m−1,c≤n−1.
If b≤m−2, then
a+hd≤2m−2+3n−1=41×2m+31×3n≤127×(a+39d)<a+26d,
a contradiction.
If c≤n−2, then
a+hd≤2m−1+3n−2=21×2m+91×3n≤1811×(a+39d)<a+26d,
also a contradiction.
It follows that b=m−1,c=n−1, which implies that at most one of a+26d,a+27d,…,a+39d cannot be written as 2m+3l or 2k+3n.
In these 14 numbers, at least 13 numbers can be written as 2m+3l or 2k+3n. By the pigeonhole principle, at least 7 numbers can be written in the same form. We shall discuss two cases.
Case 1: There are 7 numbers in the form of 2m+3l, denoted by
2m+3l1,2m+3l2,…,2m+3l7,
where l1<l2<⋯<l7. Thus, 3l1,3l2,…,3l7 are the 7 terms of an arithmetic progression with 14 terms and the common difference d. However,
13d≥3l7−3l1≥(35−31)×3l2>13(3l2−3l1)≥13d,
a contradiction.
Case 2: There are 7 numbers in the form of 2k+3n, denoted by
2k1+3n,2k2+3n,…,2k7+3n,
where k1<k2<⋯<k7. Thus 2k1,2k2,…,2k7 are the 7 terms of an arithmetic progression with 14 terms and the common difference d. However,
13d≥2k7−2k1≥(25−21)×2k2>13(2k2−2k1)≥13d,
a contradiction.
It follows from the above arguments that our assumption at the very beginning is false, which completes the proof.