We define a N-digit number as a sequence $d_{1}d_{2}d_3...d_N$, where $d_k\in\{0,1,2,3,4,5,6,7,8,9\}$. So the first digits can be equal to zero. N is a positive even integer. The problem is to find, how many N-digit numbers are there, which have their sum of the digits on odd places equal to the sum of digits on the even places. Example number would be 2563 for 4-digit numbers as 2 + 6 = 5 + 3.
My thought was to choose the odd digits, we can do that in $10^{N/2}$ ways and then for each of that combinations make even digits a permutation of them ($\frac{N}{2}!$), but this, if correct at all, is only a small fraction of all the possibilities. Why? Because the digits do not have to be the same. Only the sums have to be equal.
Then my second though was that each of such numbers consists of digits from other (shorter) numbers that satisfy the requirement, but it is not true since only the sums have to be equal.
We can for each sum of odd/even digits calculate how many ways we can express it on N/2 digits and then sum the squares of such numbers of combinations. However that leads to very unfriendly calculations.
After you find a nice way, please provide some example calculations for N=4 and N=6.