the expectation for a discrete type random variable that takes non negative integer value is given by:
$$ E[X] = \sum_{k=0}^\infty kP(X=k) = \sum_{k=0}^\infty P(X>k) $$
The derivation involves the following property: $$ P(X>n) = \sum_{k=n}^\infty P(X=k) $$
in a post on this website (https://stats.stackexchange.com/questions/476887/intuition-for-expectation-of-discrete-random-variable-that-takes-positive-intege) ,enter image description herethe derivation of the upper mentioned property is done in the following way: $$ P(X>n) = 1 - P(X\leq n) = \sum_{k=0}^\infty P(X=k)\ - \sum_{k=n}^\infty P(X=k) = \sum_{k=n}^\infty P(X=k) $$
but I think this is incorrect because there should be equality sign in $ P(X>n)$ because we are also considering the case of $P(X=n)$ in the summation:
as a consequence of this the expectation formulae would also involve the equality i.e. $$ E[X] = \sum_{k=0}^\infty P(X\geq k) $$
Is it correct or does the equality doesn't matter and if it does what consequence does this have ? I have also attached a image of my version of derivation please tell me if there's any mistake.