Let $x$ be an integer between $1$ and $10^{12}$. What is the probability that $x^3$ ends with 11?
I started with expressing $x^3=(a+10b)^3$ and applied binomial theorem to get $$x^3 = a^3+300b^2a+30a^2b+1000b^3 $$ How do I proceed from here? Thanks.
Let $x$ be an integer between $1$ and $10^{12}$. What is the probability that $x^3$ ends with 11?
I started with expressing $x^3=(a+10b)^3$ and applied binomial theorem to get $$x^3 = a^3+300b^2a+30a^2b+1000b^3 $$ How do I proceed from here? Thanks.
You've already noticed that only $a^3$ and $30a^2b$ affect the last two digits.
Notice further that only $a^3$ affects the final digit--namely, the final digit of $x^3$ is the final digit of $a^3.$ Thus, $a=1.$
Consequently, the second-to-last digit of $x^3$ is the last digit of $3b,$ and so we need the last digit of $b$ to be $7.$
Can you take it from there?
If $x^3 \equiv 1 \bmod 100$, then $x^2 x \equiv 1$ and so $x$ is a unit mod $100$. The group of units mod $100$ has order $\phi(100)=40$. Therefore, since $\gcd(40,3)=1$, the map $x \mapsto x^3$ is a bijection. Thus, there is exactly one $x$ such that $x^3 \equiv 11 \bmod 100$.
11 mod 1000, hence the probability is 1/100
– godimedia
Jan 13 '24 at 02:47