If the sum of the coefficients of all even powers of x in the product 1+x+x2+.....+x2n1−x+x2−x3+.....+x2n is 61, then n is equal to _____.
Let,1+x+x2+.....+x2n1−x+x2−x3+.....+x2n=a0+a1x+a2x2+....
Put x = 1
12n+1=a0+a1+a2+....+a4n….(i)
Put x = -1
2n+1×1=a0−a1+a2-...+a4n..(ii)
From (i) + (ii)
4n+2=2a0+a2+...
=2×61
⇒2n+1=61⇒n=30