Let a function be defined as described above.
Let be a randomly chosen integer. The probability that exists (i.e there exists a real such that ) can be represented as for positive coprime integers . Find .
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.
Let's first deal with the inside sum first: j = 1 ∑ i ⌈ x + i j ⌉ letting i be a constant. Let's call that sum g ( x ) .
Expanding, we see that we want to find g ( x ) = ⌈ x + i 1 ⌉ + ⌈ x + i 2 ⌉ + ⋯ + ⌈ x + i i − 1 ⌉ + ⌈ x + 1 ⌉
This looks a lot like Hermite's Identity. Too bad that it's ceilings, not floors. But what if we could derive a similar formula for ceilings? Let's try it.
First, note that when x ∈ ( 0 , i 1 ] , then g ( x ) = i + 1 . When x ∈ ( i 1 , i 2 ] , then g ( x ) = i + 2 . We see that when x ∈ ( i k , i k + 1 ] , then g ( x ) = i + k + 1 (the proof is simple). Thus, when i x ∈ ( k , k + 1 ] , or equivalently when ⌈ i x ⌉ = k + 1 then g ( x ) = i + k + 1 . Thus, g ( x ) = ⌈ i x ⌉ + i The proof will be left as an exercise to the reader (it's not that different than proving Hermite's Identity).
Thus, we have reduced the problem to f ( x ) = i = 1 ∑ 2 0 ( ⌈ i x ⌉ + i )
First off, note that f ( x + 1 ) − 2 1 = f ( x ) , so we just need to consider the parts where f ( x ) = 1 → 2 1 0 (since the pattern repeats for x > 2 1 0 and x < 0 ), or when x ∈ ( 0 , 1 ] .
Now note that whenever i x turns into an integer, f ( x ) increases by one. Thus, the parts where f ( x ) changes value is when x = b a , where a ≤ b and b ≤ 2 0 (these bounds come from x ∈ ( 0 , 1 ] ). But how can f − 1 ( n ) not exist then? The reason is that sometimes, there exists two or more i 1 , i 2 , … i k ∈ { 1 , 2 , … 1 9 , 2 0 } such that i m x is an integer for all m = 1 → k . This happens when b a is not in its simplest form, or g cd ( a , b ) = 1 .
Thus, to count the number of possible values of f ( x ) , we just need to count the number of times where g cd ( a , b ) = 1 . Letting b = 1 → 2 0 , we see that this happens ϕ ( 1 ) + ϕ ( 2 ) + ⋯ + ϕ ( 2 0 ) times.
Thus, our probability is 2 1 0 i = 1 ∑ 2 0 ϕ ( i ) . Unfortunately, there is no easy way to calculate the numerator, so we just have to bash. Bashing all the values, we see that our probability is 2 1 0 1 2 8 = 1 0 5 6 4 , and our answer is 6 4 + 1 5 = 1 6 9 .