The first three terms in the expansion of (1+a)n are t1=1,t2=−18,t3=144.
Use the general term to determine a and n.
In the expansion of (1+ax)n, the first three terms are 1+12x+64x2, then n=