Let the first three terms be a−d,a,a+d where a is the first term and d be the common difference.
According to the question a−d+a+d=2
⇒2a=2 or a=22=1
Now, let the last three terms be a,ar,ar2
Given:a+ar2=26
⇒a(1+r2)=26
⇒1+r2=26a=261=26
⇒r2=26−1=25
∴r=±5
∴ Second term =a=1
Third term=ar=5 or −5
Fourth term=ar2=25
Thus, by comparing second and third term we get
d=a3−a2
d=5−1 or −5−1
∴d=4 or −6
∴ we know a1=a2−d
a1=1−4 or 1−(−6)
∴a1=−3 or 7
Thus there are two sets of numbers
{−3,1,5,25} and {7,1,−5,25}