login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A111700 Number of integers between p(n) and p(n+1) which are coprime to (p(n+1)-p(n)), where p(n) is the n-th prime. 0
0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 3, 1, 0, 1, 0, 1, 5, 1, 1, 0, 3, 0, 1, 1, 1, 1, 1, 0, 3, 0, 1, 0, 3, 3, 1, 0, 1, 1, 0, 3, 1, 1, 1, 0, 1, 1, 0, 3, 5, 1, 0, 1, 5, 1, 3, 0, 1, 1, 3, 1, 1, 1, 1, 3, 1, 3, 3, 0, 3, 0, 1, 1, 1, 3, 1, 0, 1, 3, 3, 1, 3, 1, 1, 3, 0, 5, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,24
LINKS
FORMULA
a(n) = phi(p(n+1)-p(n)) - 1, where phi(n) = A000010(n).
EXAMPLE
Between the primes p(24) = 89 and p(25) = 97 are 3 integers (91, 93 and 95) which are coprime to (p(25)-p(24)) = 8, so a(24) = 3.
MATHEMATICA
Table[EulerPhi[Prime[n + 1] - Prime[n]] - 1, {n, 1, 70}] (* Stefan Steinerberger, Mar 30 2006 *)
PROG
(MuPAD) for n from 2 to 100 do a := ithprime(n); b := nextprime(a+1); su := 0; for k from a+1 to b-1 do if gcd(k, (b-a)) = 1 then su := su+1; end_if; end_for; print(su); end_for; // Stefan Steinerberger
CROSSREFS
Sequence in context: A120080 A227570 A352269 * A233316 A060096 A245756
KEYWORD
nonn
AUTHOR
Leroy Quet, Nov 17 2005
EXTENSIONS
More terms from Stefan Steinerberger, Nov 19 2005
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 20 00:03 EDT 2024. Contains 371798 sequences. (Running on oeis4.)