Palindromic partitioning of the natural number A is called, when A is written as the sum of natural the terms A=a1+a2+ ldots+an−1+an (n≥1), in which a1=an,a2=an−1 and in general, ai=an+1−i with 1≤i≤n.
For example, 16=16, 16=2+12+2 and 16=7+1+1+7 are palindromic partitions of the number 16.
Find the number of all palindromic partitions of the number 2006. number theorycombinatoricsSum