login
This site is supported by donations 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; internal format)
OFFSET

1,24

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 (stefan.steinerberger(AT)gmail.com), 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; (Steinerberger)

CROSSREFS

Sequence in context: A127537 A025443 A120080 * A060096 A152892 A193002

Adjacent sequences:  A111697 A111698 A111699 * A111701 A111702 A111703

KEYWORD

nonn

AUTHOR

Leroy Quet Nov 17 2005

EXTENSIONS

More terms from Stefan Steinerberger (hansibal(AT)hotmail.com), Nov 19 2005

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 17:48 EST 2012. Contains 205939 sequences.