Using the recursive formula a1=3 and an=2(an-1+1), we can find the values of a2, a3, and a4 as follows:
a2 = 2(a1 + 1) = 2(3 + 1) = 8
a3 = 2(a2 + 1) = 2(8 + 1) = 18
a4 = 2(a3 + 1) = 2(18 + 1) = 38
Therefore, the values a2, a3, and a4 for the given recursive formula are 8, 18, and 38, respectively.