Albert1
- 1,221
- 0
$n\in N$
$100\leq n\leq 1997$
$\dfrac{2^n+2}{n} $ also is an integer
please find n
$100\leq n\leq 1997$
$\dfrac{2^n+2}{n} $ also is an integer
please find n
Albert said:$n\in N$
$100\leq n\leq 1997$
$\dfrac{2^n+2}{n} $ also is an integer
please find n
perl -e "use bigint; foreach $n (100..1997) { print $n if ((2**$n+2) % $n == 0); }"
946
I like Serena said:Alternatively:
Code:perl -e "use bigint; foreach $n (100..1997) { print $n if ((2**$n+2) % $n == 0); }" 946
Albert.Teng said:Can this be done without using computer program ?
I don't see an analytic way to derive this result, but there is a fairly easy way to verify that it is correct.Albert said:Can this be done without using computer program ?I mean using mathematical analysis only
Albert.Teng said:but how to get the correct answer n=946 is a challenge
Albert.Teng said:Further more is there any other positive integers will also satisfy our needs ?
mathbalarka said:As I said before, there is a great possibility that there are no other analytical method rather than brute-force.
in fact we may follow the procedure to find n=946:Albert said:$n\in N$
$100\leq n\leq 1997$
$\dfrac{2^n+2}{n} $ also is an integer
please find n
Albert.Teng said:(1 impossible)
mathbalarka said:You can exclude the possibility that n is odd and hence, reducing your work a bit.
http://www.mathhelpboards.com/images/mhb/misc/quote_icon.png Originally Posted by Albert.Teng
(1 impossible)
How does that follow? I don't understand.
mathbalarka said:You can exclude the possibility that n is odd and hence, reducing your work a bit.
Albert said:$ 3^5$+1=33 is a multiple of 11
and $3^7$+1=129 is a multiple of 43 ,
thanks ! yes it is "2" instead of 3mathmaniac said:Isn't it "2" instead of 3?
mathmaniac said:What answers do the computer programme give?
mathmaniac said:n/2 is also odd.
mathbalarka said:So? Please elaborate.
mathmaniac said:What answers do the computer programme give?
mathmaniac said:So we have to look only numbers of the form 2(mod 4)...
mathbalarka said:... Which is equivalent to 0 (mod 2) which is not true. Even numbers cannot satisfy the conditions in OP as I noted before.
You can't say whether n/2 is odd or even since n/2 isn't really an integer. Hence, your claim that n/2 is odd is false.
Hello mathbalarka.mathbalarka said:Same thing I am thinking. The problem can be rephrased as
$$2^n = -2 \pmod{n}$$
Hence, n isn't prime. In fact, n is also not odd since if it's the case, n would be even and hence, creating a contradiction. See A006517, for example.
I don't there is any analytic way to prove it, the only thing would be brute-force search.
caffeinemachine said:Hello mathbalarka.
I don't see how it follows that $n$ is not odd. Can you please elaborate.
mathmaniac said:May I ?
2^n+2 is always even.If n is odd, $$\frac {2^n+2}{n}$$ is not an integer and the question is to find n that satisfies $$\frac {2^n+2}{n}$$ is an integer.
So n is not odd.
-mathmaniac
No.You said odd numbers can't satisfy the condition.
And if you say even numbers can't then what is 6,66,946...etc?Are they odd?
I don't see how it follows that n is not odd. Can you please elaborate.
Thanks. Nice.mathbalarka said:It's not that straightforward as mathmaniac thinks it is. I already gave the link but nobody have seen it. Here it is one more time for the readers and contributers of this topic : A006517. (Look at the comment of Max Aleksevev)