Find the least positive integer $n$ such that when $3^n$ is written in base $143$, its two right-most digits in base $143$ are $01$.
Solution 1
Note that the given condition is equivalent to
and
. Because
, the desired condition is equivalent to
and
.
If
, one can see the sequence
so
.
Now if
, it is harder. But we do observe that
, therefore
for some integer
. So our goal is to find the first number
such that
. In other words, the
. It is not difficult to see that the smallest
, so ultimately
. Therefore,
.
The first
satisfying both criteria is thus
.
Solution 2
Note that Euler's Totient Theorem would not necessarily lead to the smallest
and that in this case that
is greater than
.
We wish to find the least
such that
. This factors as
. Because
, we can simply find the least
such that
and
.
Quick inspection yields
and
. Now we must find the smallest
such that
. Euler's gives
. So
is a factor of
. This gives
. Some more inspection yields
is the smallest valid
. So
and
. The least
satisfying both is
.