Say I roll a $6$ sided dice and I want to roll a $6$. what is the probability that I will have rolled the number I want after $6$ rolls?
I have been using this: $\displaystyle1-\left(1-\frac{1}{x}\right)^y$
where $x$ is the number of sides and $y$ is the amount of rolls, so it would be $\displaystyle1-\left(1-\frac{1}{6}\right)^6$ for rolling a specific number in $6$ rolls, which is $\approx66.5\%$ is this the correct way of calculating the probability of something like this, if not what is the proper way?
i'm not really sure why that formula works(if it does) so some elaboration on that would be nice.
sorry for lack of technical language
thanks in advance