Let T = t(1). Then:
t(2) = T + 1
t(3) = t(2)*t(1) + 1 = (T + 1)*T + 1 = T^2 + T + 1
t(4) = t(3)*t(2)*t(1) + 1 = (T^2 + T + 1)*(T + 1)*T + 1 = T^4 + 2T^3 + 2T^2 + T + 1
By looking modulo 5, the condition that t(4) is divisible by 5 is impossible.
The best sequence is thus:
t(1) = 1
t(2) = 2
t(3) = 3
|