login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A072917 a(n) = p(n) - phi(n), where p(n) is the least prime greater than phi(n). 0
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 3, 1, 1, 1, 3, 3, 1, 1, 1, 1, 3, 1, 1, 3, 1, 5, 1, 1, 1, 5, 1, 1, 1, 1, 3, 5, 1, 1, 1, 1, 3, 5, 5, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 5, 5, 3, 1, 5, 3, 5, 1, 5, 1, 1, 1, 1, 1, 5, 1, 5, 5, 1, 1, 5, 3, 1, 3, 1, 1, 5, 1, 3, 1, 1, 1, 5, 1, 1, 1, 1 (list; graph; refs; listen; history; internal format)
OFFSET

1,15

EXAMPLE

phi(15) = 8 and the least prime > 8 is 11; hence a(15) = 11 - 8 = 3.

MATHEMATICA

a[n_] := Module[{r, p}, p = EulerPhi[n]; r = p + 1; While[ ! PrimeQ[r], r = r + 1]; r - p]; Table[a[i], {i, 1, 100}]

CROSSREFS

Sequence in context: A114231 A079075 A086703 * A114266 A135910 A107333

Adjacent sequences:  A072914 A072915 A072916 * A072918 A072919 A072920

KEYWORD

easy,nonn

AUTHOR

Joseph L. Pe (joseph_l_pe(AT)hotmail.com), Aug 11 2002

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 15 21:27 EST 2012. Contains 205859 sequences.