Between two powers of an integer there is a power of two

  • Context: Graduate 
  • Thread starter Thread starter keniwas
  • Start date Start date
  • Tags Tags
    Integer Power
Click For Summary

Discussion Overview

The discussion revolves around proving the inequality that states for a fixed positive integer n greater than 1 and an arbitrary positive integer r, there exists a positive integer k such that \( n^k \leq 2^r < n^{(k+1)} \). The context includes theoretical exploration related to information theory and mathematical reasoning.

Discussion Character

  • Exploratory
  • Mathematical reasoning

Main Points Raised

  • One participant seeks a proof for the inequality involving powers of n and powers of two, noting that it is referenced in resources on entropy.
  • Another participant suggests that the inequality holds for arbitrary integer sequences, not just powers of n, provided the sequence increases without bound.
  • A participant requests clarification on the application of arbitrary integer sequences and the significance of finding the smallest member less than or equal to r.
  • One participant proposes a method to find the largest k such that \( n^k \leq 2^r \) to establish the inequality.
  • Another participant offers a mathematical manipulation involving logarithms, suggesting that it reduces the problem to finding a k that satisfies \( k \leq r \log_n 2 < k+1 \).
  • A participant provides an explanation involving binary representation and shifting bits to demonstrate that the inequality holds under certain conditions.

Areas of Agreement / Disagreement

Participants express various methods and perspectives on proving the inequality, but there is no consensus on a single approach or resolution to the proof itself.

Contextual Notes

Some participants mention conditions such as the requirement for n to be greater than or equal to 2 and the need for the integer sequence to increase without bound, which may affect the applicability of their arguments.

keniwas
Messages
57
Reaction score
1
Hi Everyone,

I am reading up on information theory, and every resource I have found on the topic which derives the form of entropy uses the following inequality as part of the proof.

Let n be a fixed positive integer greater than 1. If r is an arbitrary positive integer, then the number 2^r lies somewhere between two powers of n. i.e. There exists a positive integer k such that

n^k\leq 2^r &lt; n^{(k+1)}

However, none of them prove it and I am unclear how to do so. If anyone has any ideas on how to prove it, or topics I should look into which would make this inequality obvious I would really appreciate it.
 
Physics news on Phys.org
This is true for arbitrary integer sequences, not just powers of n (provided it increases without bound, and has a small enough member -- but those are obviously true for powers). Find the smallest member less than or equal to r, then choose the next one.
 
CRGreathouse said:
This is true for arbitrary integer sequences, not just powers of n (provided it increases without bound, and has a small enough member -- but those are obviously true for powers). Find the smallest member less than or equal to r, then choose the next one.

Sorry, could you explain a little by what you mean that it applies to arbitrary integer sequences as well? I am not clear why we want the smallest member less than or equal to r?
 
So pick r and n first. Now, look at 2^r, and find the largest k such that n^k\le2^r. Then the inequality holds.
 
Here's a quick&dirty explanation. Dividing through by n^k you get
1\leq \frac {2^r}{n^k} &lt; n \quad\quad\quad \mbox{(1)}

Now consider the binary representation of the fraction
\frac 1 {n^k}

This is less than 1, so it will begin by 0.xxx... You can shift left the bits in this representation until a 1 comes into the integer part (making it 1.xxx...). This new number is now between 1 and 2 (possibly equal to 1, but definitely less than 2). Let r be the number of bits you shifted; then the shifted number is the fraction in inequality (1); and it is between 1 and 2. Since n \ge 2, the inequality holds.
 
another lazy way to see it is to take log to the base n of both sides, ,which reduces the question to finding a k such that


k \leq r \log_n 2&lt; k+1

which is obviously possible.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 17 ·
Replies
17
Views
7K
  • · Replies 7 ·
Replies
7
Views
2K