Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A111700
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
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
1
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; listen)
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

PROGRAM

(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

Adjacent sequences: A111697 A111698 A111699 this_sequence A111701 A111702 A111703

Sequence in context: A127537 A025443 A120080 this_sequence A060096 A051834 A062719

KEYWORD

nonn

AUTHOR

Leroy Quet (qq-quet(AT)mindspring.com), Nov 17 2005

EXTENSIONS

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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 9 14:06 EDT 2008. Contains 144831 sequences.


AT&T Labs Research