Let I have an equation $\mathcal{p} = 3^n*I$ where $I\in\{0,1,2\}$ then can I find out $I$ using $\log$ ?. Assuming $n$ is unknown. And only $p$ is shared to you.
-
I don't understand your question; the value of $I$ is irrelevant to the number of $3$'s that you multiply by, which is always $n$. – Jan 23 '16 at 17:21
-
If $I=0$, there is no way to evince $n$ from $3^n\times I$. – Jan 23 '16 at 17:24
-
$I$ is multiplied by $3^n$ once (1 time). whether n is known are not. I don't think that is what you meant to ask. But if n is known I don't know what you meant to ask. – fleablood Jan 23 '16 at 17:24
-
@G.Sassatelli If n is known then there is no need to evince n from 3^n*I. – fleablood Jan 23 '16 at 17:26
-
Let me make it simple. Let $n=2$ and $I=2$ then $p=18$. Now can we find out if $I=1$ or $I=2$ here if only $18$ is shared to you. by using logs only. – Bill Jan 23 '16 at 17:26
-
@G.Sassatelli I have edit my question. Consider $n$ as unknown. – Bill Jan 23 '16 at 17:28
-
Okay, I think your question is "How can I find out what n is if n is unknown" but then I don't know why you wrote I $\in$ {0,1,2}. It's impossible if I = 0, and if I $\ne$ 0 it is possible for all other I (with same signage as p) not just 1 or 2. – fleablood Jan 23 '16 at 17:29
-
@fleablood yes you are right but I have to find out value of $I$ from $P$. $I\in{0,1,2}$ means $I$ is limited to these values. – Bill Jan 23 '16 at 17:32
-
Well, the answer is still that $I$ is multiplied with $3^n$ once. If you mean, what is n, then $p/I = 3^n$ if $I \ne 0$ and $n = \log_3 (p/I) = \ln (p/I)/ln 3$. But if I = 0 then n can be any value whatsoever. – fleablood Jan 23 '16 at 17:33
-
@fleablood I edit my question and sorry for confusion. now it should be clear what I am asking :) – Bill Jan 23 '16 at 17:34
1 Answers
Don't need log at all.
if $I = 0$ then $P = 3^n * I = 0$
if $I = 1$ then $P = 3^n * I = 3^n = $ odd.
if $I = 2$ then $P = 3^n * I = 2*3^n = $ even.
So as long as you have it on good authority that $P $ does $= 3^n *I$ for some legitimate natural number n, and I = 0, 1, 2, then you can find the value of I by seeing if P is 0, even, or odd.
====
Which if you do want to use $\log$ can be expressed via
if $\log_3 P$ is undefined then $P \le 0$ which given our criteria means $I = 0$
if $\log_3 P <0$ then $P < 1$ which given our criteria is impossible.
if $\log_3 P = m$ a natural number, then $P = 3^m$ so $I = 1$ .
all others $\log_3 P = x$, then given our criteria $I = 2$ and $x = n* \log_3 2$. But there are several cases that are impossible with our criteria. $\log_3 2 = 0.63092975357145743709952711434276$ so if $x \ne k*0.63092975357145743709952711434276$ our criteria fail.
- 124,253
-
-
If you get something like $p = 17$ or $p = 32$ or p not an integer, though, the guy who gave you the question was lying to you: $P \ne 3^n * I$ for I = 0,1,2 and $n \in \mathbb N$. – fleablood Jan 23 '16 at 17:55