The Olympiad-style question I was given was as follows:
A function f:N→N is defined by f(1)=1 and for n>1, by: f(n)=f(⌊2n−13⌋)+f(⌊2n3⌋) Is it true that f(n)−f(n−1)≤n,∀n>1?
Expanding f(n) and f(n−1), we get:
f(n)−f(n−1)=f(⌊2n−13⌋)+f(⌊2n3⌋)−f(⌊2n−33⌋)−f(⌊2n−23⌋)
Looking at the behaviour of the function given arguments modulo 3, we can see the following, ∀n>1, where D(n)=f(n)−f(n−1):
D(n)={f(⌊2n−13⌋)+f(⌊2n3⌋)−f(2n3−1)−f(2n−23)if n≡1(mod3)f(⌊2n−13⌋)+f(⌊2n3⌋)−f(⌊2n3⌋−1)−f(⌊2n−23⌋)if n≡2(mod3)f(2n3−1)+f(2n3)−f(⌊2n3⌋−1)−f(⌊2n−23⌋)if n≡0(mod3)
But I'm not sure how to construct a suitable counter example or proof of the proposition. A quick construction of the first 10 test cases, shows that D(n)=1:n≡1(mod3), and D(n)=1:n≡0(mod3).
However D(2)=1, D(5)=2 and D(8)=4, suggesting a power of 2 escalation, which would mean for sufficiently high n:n≡2(mod3), D(n)>n, but I'm unsure how to show this.
Thanks in advance!
EDIT: Continuing my construction of the sequence has shown there is no power of 2 escalation, for successive terms n≡2(mod3), however, as pointed out in the comments, all of the differences are powers of 2.
EDIT 2: If it helps anyone, by plotting a graph on Mathematica, I was able to determine that the assertion is false, with a counter example at n=242, with f(242)=3072, f(241)=2816, and therefore f(242)−f(241)=256, and as 256>242, the assertion is false. But how could I disprove the assertion mathematically, without a computer?
Answer
I'm going to expand on the idea given by Leslie Townes in the comment above. Build a tree rooted in 2 on the integers ≥2 with two types of edges:
2k⟶3k2k⟶3k+12k+1⟹3k+2
Then log2(f(n)−f(n−1)) (which happens to be an integer) is the number of ⟹ in the path from 2 to n.
We want a path with many ⟹ and few ⟶ (specifically, more than log2n ⟹). Because exactly one of 3k and 3k+1 is odd, there is a unique infinite path P starting from 2 avoiding consecutive ⟶. The density of ⟹ in P is at least 1/2, and if it is higher than log23/2 we have succeeded.
I'm not sure if anything can be proven rigorously about the density of P (the problem reminds me a bit of the Collatz conjecture so it could be difficult): if you do please comment.
But experimentally the density seems to be 2/3>log23/2, so we are sure to find a counterexample that is a finite subpath of P and indeed:
2⟶3⟹5⟹8⟶13⟹20⟶31⟹47⟹71⟹107⟹161⟹242
There are 8 ⟹ before 242, and 242<28.
No comments:
Post a Comment