Let $X$ be a continuous non-negative local martingale with $X_0=1$ and $X_t\to0$ almost surely as $t\to\infty$. For $a>1$, let $\tau_a=\inf\{t\geq0:X_t>a\}$.
I am tasked with showing that $\mathbb{P}(\tau_a<\infty)=\mathbb{P}(\sup_{t\geq0}X_t>a)=1/a$. The hint given is to compute the expected value of $X_{t\wedge\tau_a}=a1_{\tau_a\leq t}+X_t1_{\tau_a>t}$, but I still don't really have any idea how to proceed, so any advice would be greatly appreciated!