Community

Want to learn how to tackle those tough AMC/AIME/Olympiad algebra problems? Check out Art of Problem Solving's Intermediate Algebra by Richard Rusczyk and Mathew Crawford. Over 1600 problems!
Login Register Memberlist Search AoPS Blogs Contests Galleries Forum Index
The time now is Mon Nov 23, 2009 7:12 pm
All times are UTC - 8
View posts since last visit
View unanswered posts
Add divisor
Moderators: DanZ, ztbb
Post new topic   Reply to topic View previous topicView next topic
5 Posts • Page 1 of 1
Author Message
archimedes1
Navier-Stokes Equations
Navier-Stokes Equations


Offline
Joined: 01 Feb 2007
Posts: 1454
IndiaUnited States

To rate posts you must be logged in
#1
Add divisor
2009 Qualifying Quiz, Problem 4

Suppose you start with the number 1 and go through a series of steps, where at each step you add a (positive integer) divisor of your current number to the number itself, to get a new number. For instance, the first step is forced: you have to take 1 + 1, so your new number is 2. Now you have two choices; the next number could be 2 + 1 = 3 or 2 + 2 = 4. If you choose 4, the next step after that can take you to 5, 6, or 8.

    a) Show that if N \leq 2^{n + 1}, then you can always reach N using 2n
    steps or fewer.

    b) Show that if N > 2^n and you can reach N in n + 1 steps, then N is a
    sum of two powers of two.


PostPosted: Wed Jun 03, 2009 9:40 am  Back to top 
  ProfilePMBlogAlbum
CatalystOfNostalgia
Navier-Stokes Equations
Navier-Stokes Equations

Offline
Joined: 19 Oct 2007
Posts: 1727
Location: Lexington, MA
MalaysiaUnited States

To rate posts you must be logged in
#2
a
Note that this is not true for n=0, for one step is required to reach 2. We prove by induction on n that for all N such that 2^{n}\le N\le 2^{n+1}, we can reach N in 2n steps or fewer, as long as n\ge1. For the base case, consider n=1, so that 2\le N\le 4. 2 can be reached in 1 step, by taking simply 1+1. 3 can be reached in two steps, by taking (1+1)+1. 4 can be reached in two steps, by taking (1+1)+2. Since 2(1)=2, this establishes the base case.

Now, assume the claim holds for some n=k; we wish to prove it for n=k+1. We have that 2^{k+1}\le N\le 2^{k+2}. First, if N is even, we have that N/2 is an integer between 2^{k} and 2^{k+1} inclusive. Thus, by the inductive hypothesis, N/2 can be reached in at most 2k steps. Then, we can get from N/2 to N simply by adding N/2, so in total this takes at most 2k+1<2k+2 steps. Now, if N is odd, we have that (N-1)/2 is an integer between 2^{k} and 2^{k+1} inclusive (in fact, it is strictly less than 2^{k+1}). Thus, by the inductive hypothesis, (N-1)/2 can be reached in at most 2k steps. Then, we can add (N-1)/2, then add 1, to get N, in at most 2 more steps, so 2k+2 steps total. This completes the proof.


b
We proceed by induction on n. First, we show that N\le 2^{n+1}. Let a_{k} be the number after k steps. We have that a_{k+1}\le a_{k}+a_{k}=2a_{k}, and it follows that N=a_{n}\ge2^{n+1}.

We first prove the claim for n=0. That is, if 2^{0}<N\le2^{1} and we can reach N in 1 step, then N is the sum of two powers of 2. N=2 is the only number that satisfies this, and 2=2^{0}+2^{0}. Now, assume the claim holds for some n=k. That is, if 2^{k}<N\le2^{k+1} and we can reach N in k+1 steps, N is the sum of two powers of two. Say that N=2^{a}+2^{b}. If a,b<k, we have 2^{a}+2^{b}\le 2^{k-1}+2^{k-1}=2^{k}, contradiction. Also, if one of a,b, say a, is more than k, then we have 2^{a}+2^{b}>2^{a}\ge2^{k+1}, contradiction. Thus, one of them, say a, is equal to k exactly. So we have N=2^{k}+2^{b}.

We now prove that it holds for n=k+1. Let the number be N', so that 2^{k+1}<N'\le2^{k+2}, and we can get to N' in k+2 steps. Consider the number M that we have after k+1 steps; we have N'\le2M, so M\ge N'/2>2^{k}. Also, M\le 2^{k+1} since this is the maximum number we can get to in k+1 steps. Thus, by the inductive hypothesis, M is the sum of two powers of two, and we can write it as 2^{k}+2^{b}, where 0\le b\le k. We consider a few cases: first, if b\le k-2, note that other than M itself, the largest factor of M is at most M/2=2^{k-1}+2^{b-1}. But if we add this to get to N', we get 2^{k}+2^{k-1}+2^{b}+2^{b-1}\le 2^{k}+2^{k-1}+2^{k-2}+2^{k-3}=15\cdot2^{k-3}<2^{k+1}, contradiction. Thus, we need to double M to get N', giving 2^{k+1}+2^{b+1}, obviously a power of 2.

Now, consider the case b=k-1. We have M=2^{k}+2^{k-1}=3\cdot2^{k-1}, and we need to add a factor more than 2^{k-1} to get N>2^{k+1}. However, the three largest factors of M are M,M/2,M/3, and M/3=2^{k-1}. Thus, we can only add M or M/2. Adding M results in 2^{k+1}+2^{k}, and adding M/2 results in 2^{k}+2^{k-1}+2^{k-1}+2^{k-2}=2^{k+1}+2^{k-2}, both of which are sums of two powers of two. Finally, it's left to check the case b=k, in which we have M=2^{k}+2^{k}=2^{k+1}. Any factor of M is a power of 2, so adding it to M results in the sum of two powers of two. This exhausts all cases, and we have completed the inductive step; N' is always the sum of two powers of two, as desired.

_________________
~Carl 白人看不懂

MELODIOUS

PostPosted: Wed Jun 03, 2009 11:17 am  Back to top 
  ProfilePMBlog
perfect628
Navier-Stokes Equations
Navier-Stokes Equations


Offline
Joined: 18 Jul 2006
Posts: 2170
Location: Massachusetts
United States

To rate posts you must be logged in
#3
Hmm I can't seem to find the file with my solutions...Here's a badly written outline, without induction!

Part a
First note that if N = 2^{n + 1}, we simply double 1 n + 1 times to reach N. Otherwise, consider the binary representation, d_nd_{n - 1}...d_1d_0, of N. Note that because N < 2^{n + 1}, this number has at most n + 1 nonzero digits. Consider the highest k such that d_k = 1. Note that k \leq n. Then, double 1 k times, so that the number is 2^k. Then, take the greatest m < k such that d_m = 1. Add 2^m to the number, which can be done since 2^m divides 2^k if m < k. Continue in this manner until N is reached. There are at most n 1-digits besides the initial digit, so we need at most n of these steps. Therefore, to reach N, we need at most n + n = 2n steps, QED.


b
Define a k-factor step as a step which adds a divisor of value k - 1 times the previous number, i.e. which multiplies the number by k.

We claim that the only combinations of steps which give a value of N > 2^n in n + 1 or fewer steps are n 2-factor steps followed by any other step, or n - 1 2-factor steps and two \frac32-factor steps. It is straightforward to show that each of these indeed gives a value above 2^n, and also gives a sum of two powers of two. To show that no other combinations of steps work, divide into two cases based on the number of 2-factor steps--n - 2 or less or n - 1--and show that they can't give N > 2^n.


Yeah that wasn't very coherent, and I don't really feel like typing it up again...I'll post my full solution if I can track down that file...
_________________
"Sarcasm is the protest of people who are weak."--John Knowles

"Yeah, OK"--Sam Trabucco

PostPosted: Wed Jun 03, 2009 12:17 pm  Back to top 
  ProfilePMWWWAIMBlog
archimedes1
Navier-Stokes Equations
Navier-Stokes Equations


Offline
Joined: 01 Feb 2007
Posts: 1454
IndiaUnited States

To rate posts you must be logged in
#4
Click to reveal hidden content

PART A
First, we can clearly reach 2^n in n steps by adding our number to itself at each step. Next, letting N = 2^n + a for some nonnegative integer a, we wish to show that at most n more steps from a^n are required to get to 2^n + a. Since 2^n + a = N \le 2^{n+1}, we have a \le 2^n. Since a = 2^n is clearly obtainable (by simply adding 2^n to itself), we need only consider a < 2^n.

In this case, a has at most n digits in its binary expansion. Then we have a = 2^{e_1} + 2^{e_2} + \dots + 2^{e_k} for distinct exponents e_i with k \le n and e_k  \le  n, where e_i > e_{i+1} for all i<k. Thus, since 2^{e_i} | 2^{e_1} + 2^{e_2} + \dots + 2^{e_{i-1}} for all i > 1, we can simply add 2^{e_i} at the ith step, so that we reach a after the kth step. Since k \le n, we are done, as desired.

PART B
Let \{s_i\}_{i \ge 0} be the sequence of numbers obtained after i steps, with s_0 = 1.
Define a "subpar'' step to be any step in which the number is not added to itself; that is, if s_i undergoes a subpar step, then s_{i+1} \ne 2s_i. Then if s_i undergoes a subpar step, then the divisor that is added during the step is at most \frac{s_i}{2}, so we have s_{i+1} \le \frac{3}{2}s_i.
In our sequence of n+1 steps, we claim that we can have at most two subpar steps. If our sequence has three or more subpar steps, then we have N = s_{n+1} \le 2^{n-2} ( \frac{3}{2} )^3 = 2^n - 2^{n-3} - 2^{n-5}, which is a contradiction, as N > 2^n. Thus, our sequence has at most two subpar steps.

If our sequence has no subpar steps, s_{n+1} = 2^{n+1} = 2^n + 2^n, as desired.

Note that a subpar step from s_i to s_{i+1} is adding \frac{s_i}{k}, where k is some factor of s_i. This is equivalent to multiplying by \frac{k+1}{k}. Thus, if our sequence has exactly one subpar step, then N = s_{n+1} = 2^n \frac{k+1}{k} is an integer, then k must divide 2^n, so k = 2^m for some m < n (if m=n then the step is not subpar.) Thus, N = s_{n+1} = 2^n \frac{2^m+1}{2^m} = 2^n + 2^{n-m}, as desired.

Finally, if our sequence has two subpar steps, then the subpar steps are either (1) both multiplying by \frac{3}{2}, (2) multiplying by something smaller. In the first case, we have N = s_{n+1} = 2^{n-1} (\frac{3}{2})^2 = 2^n + 2^{n-3}, as desired. In the second case, we have N = s_{n+1} \le 2^{n-1}(\frac{3}{2})(\frac{4}{3}) = 2^{n}, which is a contradiction as N > 2^n. Moreover, we have that the third case will also produce an N which is less than 2^n, giving a contradiction.

Thus, if N = s_{n+1} > 2^n, then N must be the sum of two powers of 2.


PostPosted: Wed Jun 03, 2009 12:42 pm  Back to top 
  ProfilePMBlogAlbum
Criticalline1859
Hodge Conjecture
Hodge Conjecture

Offline
Joined: 24 Oct 2007
Posts: 91
Location: The Internet

To rate posts you must be logged in
#5
Consider N in binary, it helps with the visualization of the solution (e. g. doubling is just adding a 0 at the end...).

PostPosted: Tue Jun 16, 2009 7:50 pm  Back to top 
  ProfilePM
Display posts from previous:   Sort by:   
5 Posts • Page 1 of 1
Post new topic   Reply to topic View previous topicView next topic
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
You cannot post calendar events in this forum


© Copyright 2008 AoPS Incorporated. All Rights Reserved. • FoundationPrivacyContact Us