How to find the pattern and write a general rule for the following sequence

12
12√2
24
24√2
36
36√2
48
48√2
....

for n odd,

a_n = 12n
for n even,
a_n = a_n-1 * √2 = 12(n-1)√2