Evaluate Triple Sum

n = 2 2016 k = 0 n j = 0 ϕ ( n ) + 1 ( ( n k ) ( 1 ) n + k ( n + k ) j ( ϕ ( n ) + 1 ) ! ) = ? \large \displaystyle \sum _{ n=2 }^{ 2016 }{ \displaystyle \sum _{ k=0 }^{ n }{ \displaystyle \sum _{ j=0 }^{ \phi ( n ) +1 }{ \left(\dbinom nk \dfrac { { ( -1 ) }^{ n+k }{ ( n+k ) }^{ j } }{ ( \phi ( n ) +1 ) ! } \right) } } } = \, ?

For your final step of your calculation, you may refer to this list of prime numbers .

Notations :

  • ϕ ( ) \phi(\cdot) denotes the Euler's totient function .
  • ( n k ) \dbinom nk denotes the binomial coefficient , ( n k ) = n ! k ! ( n k ) ! \dbinom nk = \dfrac{n!}{k!(n-k)!} .
  • ! ! denotes the factorial notation. For example, 8 ! = 1 × 2 × 3 × × 8 8! = 1\times2\times3\times\cdots\times8 .


The answer is 305.

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.

1 solution

Michael Mendrin
Jun 27, 2016

Relevant wiki: Prime counting function

This triple sum counts up the number of prime numbers up to 2016 2016 , which works out to 305 305 .

First, we start with the statement, which will be proven later

k = 0 n ( ( n k ) ( 1 ) n + k ( m + k ) j ) \displaystyle\sum _{ k=0 }^{ n }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \left( -1 \right) }^{ n+k }{ \left( m+k \right) }^{ j } \right)} = 0 =0 , if 0 j < n 0 \le j<n , n ! \;\; n! , if j = n j=n , for all integer n , m > 0 n, m>0

from which we can state, letting m = n m=n arbitrarily

j = 0 q k = 0 n ( ( n k ) ( 1 ) n + k ( n + k ) j ) \displaystyle \sum _{ j=0 }^{ q }{\displaystyle \sum _{ k=0 }^{ n }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \left( -1 \right) }^{ n+k }{ \left( n+k \right) }^{ j } \right) } } = 0 =0 , if 0 q < n 0 \le q<n , n ! \;\;n! , if q = n q=n

again from which we can state, reversing order of summation and dividing by n ! n!

k = 0 n j = 0 q ( ( n k ) ( 1 ) n + k ( n + k ) j n ! ) \displaystyle \sum _{ k=0 }^{ n }{\displaystyle \sum _{ j=0 }^{ q }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \dfrac { {\left(- 1 \right) }^{ n+k }{ \left( n+k \right) }^{ j } }{ n! } } \right) } } = 0 =0 , if 0 q < n , 1 0 \le q<n, \;\;1 , if q = n q=n

Now from number theory (at least not yet proven otherwise)

ϕ ( n ) + 1 = n \phi \left( n \right) +1=n

only if n n is prime, otherwise

ϕ ( n ) + 1 < n \phi \left( n \right) +1<n

so that from above, we can state

k = 0 n j = 0 ϕ ( n ) + 1 ( ( n k ) ( 1 ) n + k ( n + k ) j ( ϕ ( n ) + 1 ) ! ) \displaystyle \sum _{ k=0 }^{ n }{\displaystyle \sum _{ j=0 }^{ \phi \left( n \right) +1 }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \dfrac { { \left( -1 \right) }^{ n+k }{ \left( n+k \right) }^{ j } }{ \left( \phi \left( n \right) +1 \right) ! } } \right) } } = 0 =0 , if n = n= not prime, 1 \;\;1 , if n = n= prime

from which we can do the third and final summation

n = 2 x k = 0 n j = 0 ϕ ( n ) + 1 ( ( n k ) ( 1 ) n + k ( n + k ) j ( ϕ ( n ) + 1 ) ! ) = π ( x ) \displaystyle \sum _{ n=2 }^{ x }{\displaystyle \sum _{ k=0 }^{ n }{\displaystyle \sum _{ j=0 }^{ \phi \left( n \right) +1 }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \frac { { \left( -1 \right) }^{ n+k }{ \left( n+k \right) }^{ j } }{ \left( \phi \left( n \right) +1 \right) ! } } \right) } } } =\pi \left( x \right)

where π ( x ) \pi \left( x \right) is the Prime Counting function, which counts the number of primes equal to x x or less. Hardly the most efficient formula as a Prime Counting function, but it still works as one.

Additional notes:

If you are still wondering about

k = 0 n ( ( n k ) ( 1 ) n + k ( m + k ) j ) \displaystyle\sum _{ k=0 }^{ n }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \left( -1 \right) }^{ n+k }{ \left( m+k \right) }^{ j } \right)} = 0 =0 , if 0 j < n 0 \le j<n , n ! \;\; n! , if j = n j=n , for all integer n , m > 0 n,m>0

restate it as follows

k = 0 n ( ( n k ) ( 1 ) n + k i = 0 j ( ( j i ) ( m 1 ) i ( k + 1 ) j i ) ) \displaystyle \sum _{ k=0 }^{ n }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \left( -1 \right) }^{ n+k }\sum _{ i=0 }^{ j }{ \left( \left( \begin{matrix} j \\ i \end{matrix} \right) { \left( m-1 \right) }^{ i }{ \left( k+1 \right) }^{ j-i } \right) } \right) } = 0 =0 , if 0 j < n 0 \le j<n , n ! \;\; n! , if j = n j=n , for all integer n , m > 0 n, m>0 or, reversing order of sum

i = 0 j ( ( j i ) ( m 1 ) i k = 0 n ( ( n k ) ( 1 ) n + k ( k + 1 ) j i ) ) \displaystyle \sum _{ i=0 }^{ j }{ \left( \left( \begin{matrix} j \\ i \end{matrix} \right) { \left( m-1 \right) }^{ i }\sum _{ k=0 }^{ n }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \left( -1 \right) }^{ n+k }{ \left( k+1 \right) }^{ j-i } \right) } \right) } = 0 =0 , if 0 j < n 0 \le j<n , n ! \;\; n! , if j = n j=n , for all integer n , m > 0 n, m>0

which holds true for all integer n , m > 0 n, m>0 if

k = 0 n ( ( n k ) ( 1 ) n + k ( k + 1 ) j ) \displaystyle \sum _{ k=0 }^{ n }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \left( -1 \right) }^{ n+k }{ \left( k+1 \right) }^{ j } \right) } = 0 = 0 , if 0 j < n 0 \le j<n , n ! \;\; n! , if j = n j=n , for all integer n > 0 n>0

This can be restated as

k = 0 n ( ( n k ) ( 1 ) n + k ( k + 1 ) ( k + 1 ) j 1 ) \displaystyle \sum _{ k=0 }^{ n }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \left( -1 \right) }^{ n+k }{ \left( k+1 \right) \left( k+1 \right) }^{ j-1 } \right) } = 0 = 0 , if 0 j < n 0 \le j<n , n ! \;\; n! , if j = n j=n

and since

k = 0 n ( ( n k ) ( 1 ) n + k ( 1 ) ( k + 1 ) j 1 ) \displaystyle \sum _{ k=0 }^{ n }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \left( -1 \right) }^{ n+k }{ \left( 1 \right) \left( k+1 \right) }^{ j-1 } \right) } = 0 = 0 , if 1 j < n 1 \le j<n , n ! \;\; n! , if j = n j=n

we have, after the difference is divided by n n (with k = 0 k=0 yielding the trivial value of 0 0 )

k = 1 n ( ( n k ) ( 1 ) n + k ( k n ) ( k + 1 ) j 1 ) \displaystyle \sum _{ k=1 }^{ n }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \left( -1 \right) }^{ n+k }{ \left( \frac { k }{ n } \right) { \left( k+1 \right) }^{ j-1 } } \right) } = 0 = 0 , if 1 j < n 1 \le j<n , n ! \;\; n! , if j = n j=n

or

k = 1 n ( ( n 1 k 1 ) ( 1 ) n + k ( k + 1 ) j 1 ) \displaystyle \sum _{ k=1 }^{ n }{ \left( \left( \begin{matrix} n-1 \\ k-1 \end{matrix} \right) { \left( -1 \right) }^{ n+k }{ { \left( k+1 \right) }^{ j-1 } } \right) } = 0 = 0 , if 1 j < n 1 \le j<n , n ! \;\; n! , if j = n j=n

which is back to where we were, but with n n decreased by 1 1

k = 0 n ( ( n k ) ( 1 ) n + k ( k + 1 ) j ) \displaystyle \sum _{ k=0 }^{ n }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \left( -1 \right) }^{ n+k }{ { \left( k+1 \right) }^{ j } } \right) } = 0 = 0 , if 0 j < n 0 \le j<n , n ! \;\; n! , if j = n j=n , for all integer n > 0 n>0

Through induction, we reach the trivial case where n = 1 n=1 and compute the values directly for j = 0 j=0 and j = 1 j=1 .

k = 0 1 ( ( n k ) ( 1 ) n + k ( k + 1 ) j ) \displaystyle \sum _{ k=0 }^{ 1 }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \left( -1 \right) }^{ n+k }{ { \left( k+1 \right) }^{ j } } \right) } = 0 = 0 , for j = 0 j=0 , and 1 1 , for j = 1 j=1 .

The proof in more correct form should start at the bottom and through induction prove for all n > 0 n>0 by taking the steps in reverse order.

I did a similar thing a while back, just that for the prime-testing-function I used

P ( x ) = ( k = 1 x gcd ( x , k ) ) ( 2 x ) P\left(x\right)=\left(\sum _{k=1}^{x}\gcd \left(x,k\right)\right)-\left(2x\right)

G ( x ) = ( x + 0.9 x + 0.9 2 x 1.8 + x 1.1 x 1.1 2 x + 1.1 2 1 ) G\left(x\right)=\left(\frac{\left|x+0.9-\left|x+0.9\right|\right|}{-2x-1.8}+\frac{\left|-x-1.1-\left|-x-1.1\right|\right|}{2x+1.1\cdot 2}-1\right)

P r i m e ( x ) = G ( P ( x ) ) P_{rime}\left(x\right)=G\left(P\left(x\right)\right)

Julian Poon - 4 years, 11 months ago

Log in to reply

Poon, this triple-sum posed in this problem is probably about the worst prime-counting function that could be devised. But let me admit that I was first particularly fascinated with the curious properties of this sum

k = 0 n ( ( n k ) ( 1 ) n + k ( k + 1 ) j ) \displaystyle \sum _{ k=0 }^{ n }{ \left( \left( \begin{matrix} n \\ k \end{matrix} \right) { \left( -1 \right) }^{ n+k }{ \left( k+1 \right) }^{ j } \right) } = 0 = 0 , if 0 j < n 0 \le j<n , n ! \;\; n! , if j = n j=n , for all integer n > 0 n>0

that I later decided to make use of to create this ridiculous prime-counting triple-sum. Maybe some people had fun with this, but maybe no so much with others.

So far, most of the prime-testing, or prime-counting, or prime-generating functions that I have seen, (unlike your example?), make use of floor or ceiling functions. As a matter of fact, this equally ridiculous prime-generating function


also makes use of such floor functions, expressed in complex form. Click this for a better view.

Michael Mendrin - 4 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...