Floor functions stuff

Find sum of all natural numbers n n such that n 2 + n 5 2 \left\lfloor \frac { { n }^{ 2 }+n-5 }{ 2 } \right\rfloor is a prime.


The answer is 7.

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

Kushal Bose
Jun 12, 2017

n 2 + n 5 2 = n 2 + n 2 2 1 2 \dfrac{n^2+n-5}{2}=\dfrac{n^2+n}{2}-2-\dfrac{1}{2}

As n 2 + n = n ( n + 1 ) n^2+n=n(n+1) is always even then n 2 + n 2 \dfrac{n^2+n}{2} is always an integer

So, n 2 + n 5 2 = n 2 + n 2 2 1 = n 2 + n 6 2 = ( n + 3 ) ( n 2 ) 2 \lfloor \dfrac{n^2+n-5}{2} \rfloor=\dfrac{n^2+n}{2}-2-1=\dfrac{n^2+n-6}{2}=\dfrac{(n+3)(n-2)}{2}

The values of n = 3 , 4 n=3,4

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...