For some real number a and some positive integer n, the first few terms in the expansion of (1+ax)n are 1−6x+12x2+cx3+⋯. Find c.