I need to find the $n$ of a geometric sequence, this formula is to find the $n$th term,
$n$th = $ar ^{n-1}$; so I need $n$ to be on the left instead of $n$th, I have all the other variables except for $n$. I want to know the position of a number in a geometric sequence, and $n$th stands for the number which I know already, also I know $a$ and $r$ already, but I don't know the position of my $n$th term, which is $^n$ .
For example ==> $[1, 2, 4, 8, 16]$ how can I get the position of $8$ for example, which should be 4 based on that sequence. Thanks