Question
Question: Let $a_1, a_2, a_3, ..., a_n$ be a sequence of positive integers in arithmetic progression with comm...
Let a1,a2,a3,...,an be a sequence of positive integers in arithmetic progression with common difference d and a3=15. Then, the maximum value of the sum aa1+aa2+...+aa5 is ______.

495
Solution
The sequence is an arithmetic progression a1,a2,...,an with common difference d. The terms are given by ak=a1+(k−1)d. We are given a3=15, so a1+2d=15. Since a1 is a positive integer, a1≥1, which implies 15−2d≥1, so 2d≤14, and d≤7.
The sum to maximize is S=aa1+aa2+aa3+aa4+aa5. The expression for the sum can be derived as S=5a1(1+d)−5d+10d2. Substituting a1=15−2d, we get S=5(15−2d)(1+d)−5d+10d2=75+60d.
We need to consider the constraint that ak must be positive integers for all k∈{1,2,...,n}. If d>0, then a1=15−2d≥1, so d∈{1,2,3,4,5,6,7}. In this case, all terms ak are positive. The sum S=75+60d is maximized when d is maximized. The maximum value of d is 7. For d=7, a1=15−2(7)=1. The sequence starts with 1,8,15,22,29,.... The indices a1,...,a5 are 1,8,15,22,29. The largest index is a5=29, so n≥29. Since a1=1 and d=7, all terms ak are positive. The maximum value of S is 75+60(7)=75+420=495.
If d=0, then a1=15. The sequence is 15,15,.... The sum is S=75+60(0)=75.
If d<0, let d=−∣d∣. Then a1=15+2∣d∣. For the terms a1,...,a5 to be positive integers, we need a5=15+(5−3)d=15−2∣d∣>0, which means 2∣d∣<15, so ∣d∣≤7. However, for the sequence to consist of positive integers up to an, we must have an>0. With d<0, the terms decrease. We need an=15+(n−3)d>0. Also, we need n≥max(a1,...,a5). The maximum index is a1=15+2∣d∣. If n≥15+2∣d∣, then an≥15+(15+2∣d∣−3)d=15+(12+2∣d∣)(−∣d∣)=15−12∣d∣−2∣d∣2. For an>0, we need 2∣d∣2+12∣d∣−15<0. The positive root of 2x2+12x−15=0 is x=2−6+66≈1.05. Since ∣d∣ must be a positive integer, there is no integer ∣d∣ such that 0<∣d∣≤7 and ∣d∣<1.05. Thus, d cannot be negative.
The possible integer values for d are {0,1,2,3,4,5,6,7}. The sum S=75+60d is maximized when d=7. The maximum value of the sum is 495.