Starting from the origin, I make a sequence of moves such that, at the k th move, I move either + k units or − k units along the real line. Let m n be the least number of moves required to reach a positive integer n , then evaluate n → ∞ lim n m n .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
@Mark Hennings Yes I did the same. I had been working on a similar problem with squares and no good method has struck me yet. Probably a CS problem.
Sir, is there any method by which we can find a closed form for m(n) ?
Log in to reply
You can follow through the solution, make the minor adjustment below, and determine a closed form for m ( n ) . It would be of the form m n = ⌊ 2 n + 2 1 ⌋ + 0 , 1 , 2 depending on certain circumstances.
More explicitly, the crux of the argument is
Minor adjustment: When k + 1 is odd, we do not need to use ( k + 1 ) − ( k + 2 ) = 1 to force an odd term.
The equivalent generating function of "in k th move, I move either + k or − k " is -
f n ( x ) = k = 1 ∏ n ( x k + x − k )
such that if we want to reach the number N , then it must be the coefficient of this function, and we have to find minimum such n .
f n ( x ) = x n ( n + 1 ) / 2 1 k = 1 ∏ n ( 1 + x 2 k )
f n ( x ) = x n ( n + 1 ) / 2 1 ( 1 + x 2 + x 4 + 2 x 6 + ⋯ + a n x n ( n + 1 ) )
This clearly shows us that we have to minimum n such that N − 2 n ( n + 1 ) ≥ 0
n 2 + n − 2 N ≥ 0
n ≥ 2 − 1 + 1 + 8 N
Hence, n → ∞ lim n m n = n → ∞ lim n 2 − 1 + 1 + 8 N = 2
@Mark Hennings Can you give me an advice if we can follow this method with generating function for ± 1 2 ± 2 2 ± 3 2 ± 4 2 ± ⋯ ± n 2 ?
I have followed it quite much and have made a "not-so good looking" recurrence on coefficients which can help make a computer program but not any good mathematical analysis that I know.
What I really would like to know is what will it look like at infinity.
Log in to reply
I could also obviously think about the trigonometric analogy but haven't given it a lot of thought.
Problem Loading...
Note Loading...
Set Loading...
For any integer k ∈ N with k ≥ 2 , consider integers n such that 2 1 k ( k − 1 ) < n ≤ 2 1 k ( k + 1 ) . Since 1 + 2 + 3 + ⋯ + ( k − 1 ) = 2 1 k ( k − 1 ) we deduce that m n > k − 1 , since n is bigger than the largest positive integer that can be reached in k − 1 steps. On the other hand 1 + 2 + 3 + ⋯ + k 1 + 2 + ⋯ + ( j − 1 ) + ( − j ) + ( j + 1 ) + ⋯ + k = 2 1 k ( k + 1 ) = 2 1 k ( k + 1 ) − 2 j for any 1 ≤ j ≤ k , and so it is clear that m n ≤ k for any 2 1 k ( k − 1 ) < n ≤ 2 1 k ( k + 1 ) such that n ≡ 2 1 k ( k + 1 ) ( m o d 2 ) . On the other hand 1 + 2 + ⋯ + k + ( k + 1 ) − ( k + 2 ) 1 + 2 + ⋯ + ( j − 1 ) + ( − j ) + ( j + 1 ) + ⋯ + k + ( k + 1 ) − ( k + 2 ) = 2 1 k ( k + 1 ) − 1 = 2 1 k ( k + 1 ) − ( 2 j + 1 ) for any 1 ≤ j ≤ k , and hence m n ≤ k + 2 for all 2 1 k ( k − 1 ) < n ≤ 2 1 k ( k + 1 ) with n ≡ 2 1 k ( k + 1 ) ( m o d 2 ) . In other words k − 1 < m n ≤ k + 2 2 1 k ( k − 1 ) < n ≤ 2 1 k ( k + 1 ) and hence k ( k + 1 ) 2 ( k − 1 ) < n m n < k ( k − 1 ) 2 ( k + 2 ) 2 1 k ( k − 1 ) < n ≤ 2 1 k ( k + 1 ) Letting k → ∞ we deduce that lim n → ∞ n m n = 2 .