If the sum of odd terms and the sum of even terms in the expansion of (x+a)n are p and q respectively then p2+q2