I am trying to solve a tricky problem that deals with total number of possible combinations. Basically, the input is an even number that represents the total length of possible digits. The goal is to determine how many combinations where the sum of the left side equals the sum of the right side. How might you represent this mathematically or in some formula ?
n(2) = 10
"00", "11", "22", "33", "44", "55", "66", "77", "88", "99"
n(4) = 385
"0000", "0101", "0110", "1001", "1010", "0202", "0211" etc.
n(6) = 4981 ?
31^2$ + 33^2$ + 36^2$ + 310^2$ + 315^2$ + 321^2$ + 328^2$ + 336^2$ + 345^2$ + 355^2$ + 366^2$ + 378^2$ = 55146
– turbofood Jan 31 '22 at 19:49