Palindromic polynomial
From Wikipedia, the free encyclopedia
A polynomial is palindromic, if the sequence of its coefficients are a palindrome.
Let be a polynomial of degree n, then P is palindromic if ai = an − i for i=0...n.
Similarly, P is called antipalindromic if ai = − an − i for i=0...n.
[edit] Examples
Some examples of palindromic polynomials are:
(x + 1)2 = x2 + 2x + 1
(x + 1)3 = x3 + 3x2 + 3x + 1
Generally, the expansion of (x + 1)n is palindromic for all n (can see this from binomial expansion)
It also follows that if P is of even degree (so has odd number of terms in the polynomial), then it can only be antipalindromic when the 'middle' term is 0, i.e. ai = − ai, where n = 2i.