WolframAlpha computational knowledge AI
(a ^ 2) * ((1 - ((1 - a) ^ (2 * k))) / (1 - ((1 - a) ^ 2))) - ((2 * a / k) * ((1 - ((1 - a) ^ k)) / (1 - (1 - a)))) + (1 / k) + (((a ^ 2) * ((1 - a) ^ (2 * k))) / (1 - ((1 - a) ^ 2)))