Suppose (a1,a2,a3,a4) is a 4-term sequence of real numbers satisfying the following two conditions:[*] a3=a2+a1 and a4=a3+a2;
[*] there exist real numbers a,b,c such that an2+bn+c=cos(an) for all n∈{1,2,3,4}.Compute the maximum possible value of cos(a1)−cos(a4) over all such sequences (a1,a2,a3,a4).