I would like to calculate the following sum
Sum[0^(k-a), {k, 0, Nin}]
for a positive integer $a$.
With considering $0^0=1$, my expected answer of the sum is $1$, which is obtained for $k=a$, while ignoring the other terms for $k\neq a$.
Can this be made in Mathematica somehow?
1just use
– Bob Hanlon Jun 14 '19 at 13:41Sum[0^(k - a), {k, 0, Nin}] /. _ -> 1