eljose
- 484
- 0
If we define a function a(n) with the next properties, a(n) is 1 iff n is prime and 0 if n is composite..then we can write the function a(n)
a(n)=\pi(n+1)-\pi(n) where pi(x) is the usual prime number counting function, then my question is to define a b(n) function so b(n)=1 if p and p+2 are primes (twin primes) and 0 elsewhere (no matter if p is prime or not, p and p+2 must be consecutive primes) then my question is if we somehow could write this function in the form:
b(n)=\pi(n+2)-2\pi(n+1)+\pi(n) here you can check that for composite numbers and normal primes this function is always 0 except if p and p+2 are primes..
a(n)=\pi(n+1)-\pi(n) where pi(x) is the usual prime number counting function, then my question is to define a b(n) function so b(n)=1 if p and p+2 are primes (twin primes) and 0 elsewhere (no matter if p is prime or not, p and p+2 must be consecutive primes) then my question is if we somehow could write this function in the form:
b(n)=\pi(n+2)-2\pi(n+1)+\pi(n) here you can check that for composite numbers and normal primes this function is always 0 except if p and p+2 are primes..