13th Balkan 1996

------
 
 
Problem 4

Can we find a subset X of {1, 2, 3, ... , 21996-1} with at most 2012 elements such that 1 and 21996-1 belong to X and every element of X except 1 is the sum of two distinct elements of X or twice an element of X?

 

Solution

Answer: yes.

In the sequence 2n - 1, 2n+1 - 2, 2n+2 - 22, ... , 22n - 2n, 22n - 1 each number is double its predecessor, except for the last number which is the sum of its predecessor and the first number. Thus by adding n elements we can extend a sequence from 2n - 1 to 22n - 1 whilst preserving the property that each element (except the first) is the sum of two previous elements or is double a previous elements.

Thus starting with 1 = 21 - 1, we can construct a sequence of 1 + 2 + 3 + 5 + 9 + 17 + 33 + 65 + 129 = 264 terms which has the property and last term 2256 - 1. With 243 doublings, we can extend the sequence to last term 2499 - 2243. The sequence already includes the 6 terms 2243 - 2115 (115 doublings after 2128 - 1), 2115 - 251, 251 - 219, 219 - 23, 23 - 2, and 1, so by successively adding these we reach the 264 + 243 + 6 = 513rd term 2499 - 1.

We can now extend this to 2998 - 1 with a further 500 terms, then to 21996 - 1 with a further 999 terms, giving 2012 in all.

[To be completely explicit the set is:
1, 2=1+1, 3=1+2, 6=3+3, 12= 6+6, 15=12+3, 30=15+15, 60=30+30, 120=60+60, 240=120+120
255=240+15, 28+n-2n=(28+n-1-2n-1)+(28+n-1-2n-1), n = 1, 2, ... , 8
216-1=(216-28)+(28-1), 216+n-2n=(216+n-1-2n-1)+(216+n-1-2n-1), n = 1, 2, ... , 16
232-1=(232-216)+(216-1), 232+n-2n=(232+n-1-2n-1)+(232+n-1-2n-1), n = 1, 2, ... , 32
264-1=(264-232)+(232-1), 264+n-2n=(264+n-1-2n-1)+(264+n-1-2n-1), n = 1, 2, ... , 64
2128-1=(2128-264)+(264-1), 2128+n-2n=(2128+n-1-2n-1)+(2128+n-1-2n-1), n = 1, 2, ... , 128
2256-1=(2256-2128)+(2128-1), 2256+n-2n=(2256+n-1-2n-1)+(2256+n-1-2n-1), n = 1, 2, ... , 243
2499-2115=(2499-2243)+(2243-2115), 2499-251)=(2499-2115)+(2115-251), 2499-219=(2499-251)+(251-219), 2499-23=(2499-219)+(219-23), 2499-2=(2499-23)+6, 2499-1=(2499-2)+1
2499+n-2n=(2499+n-1-2n-1)+(2499+n-1-2n-1), n = 1, ... , 499
2998-1=(2998-2499)+(2499-1), 2998+n-2n=(2998+n-1-2n-1)+(2998+n-1-2n-1), n = 1, 2, ... , 998
21996-1=(21996-2998)+(2998-1) ].

 


 

13th Balkan 1996

© John Scholes
jscholes@kalva.demon.co.uk
11 Apr 2002