Show that 2^(k-1) doesn't divide n(n-1)/2

  • Thread starter Thread starter _Andreas
  • Start date Start date
AI Thread Summary
The discussion revolves around proving that 2^(k-1) does not divide n(n-1)/2 given that 2^(k-1) divides n but 2^k does not. It is established that n can be expressed as n=2^(k-1)m, where m is an odd integer. The participants clarify that if k=1, then 2^(k-1) becomes 1, a trivial divisor, which complicates the proof. The consensus is that for the proof to hold, k must be greater than 1 to avoid trivial cases. Ultimately, the conclusion is reached that under the given conditions, n(n-1)/2 is not divisible by 2^(k-1).
_Andreas
Messages
141
Reaction score
1

Homework Statement



2^{k-1} divides n, while 2^k does not. Show that 2^{k-1} does not divide \frac{n(n-1)}{2}.

The Attempt at a Solution



That 2^{k-1} divides n implies that n=2^{k-1}m, where m is an integer.

\frac{n}{2^k}=\frac{m}{2}, which implies that 2 does not divide m, which in turn implies that k\geq 1.

\frac{\frac{n(n-1)}{2}}{2^{k-1}}=\frac{m}{2}(n-1)

However, the last expression seems like it could still be an integer, given the premises above. Am I missing something?

(Intermediate steps are not shown because I've recalculated them several times and found them to be correct. I'm pretty sure there must be something else that's wrong or missing.)
 
Last edited:
Physics news on Phys.org
you've already shown that m is not divisible by 2; so how could (m/2)(n-1) be an integer?
 
\frac {\frac {n(n-1)} {2}}{2^{k-1}} = \frac {n(n-1)} {2^k}

n is even.
 
Of course, m is an odd integer if it isn't divisible by 2, so if n is even I have shown what I'm supposed to show. But how can n be even if k\geq 1?
 
n=2^(k-1)m which is an integer, m multiplied by some (positive integer) power of 2...hence n must be even
 
gabbagabbahey said:
n=2^(k-1)m which is an integer, m multiplied by some (positive integer) power of 2...hence n must be even

But if k=1 I then have 2^0*m=m.
 
Your condition should be that k>1...k≠1 because k=1 implies that you are counting k^0=1 as a non-trivial divisor of n.
 
gabbagabbahey said:
Your condition should be that k>1...k≠1 because k=1 implies that you are counting k^0=1 as a non-trivial divisor of n.

Why does it imply that?
 
Because if k=1, 2^(k-1)=2^0=1...which is a trivial divisor (every integer is divisible by 1), so your non-trivial cases are k>1 not k≥1.
 
  • #10
Yes, 1 is a trivial divisor, but why is it that k=1 implies that I'm counting 1 as a non-trivial divisor?
 
  • #11
Because one of the premises of your proof is that n is divisible by 2^(k-1); but if k=1, then that premise is trivial.

Considering that you are trying to show that n(n-1)/2 is not divisible by 2^(k-1); it seems reasonable that you assume that the problem refers to a non-trivial 2^(k-1).
 
  • #12
Aaah, I get it now! Thank you!
 
Back
Top