cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A282016 Least k > 0 such that phi(n) divides phi(n+k).

Original entry on oeis.org

1, 1, 1, 1, 3, 1, 2, 2, 4, 2, 11, 1, 8, 4, 1, 1, 15, 1, 8, 4, 5, 3, 23, 6, 8, 2, 10, 7, 29, 2, 30, 2, 8, 6, 4, 1, 20, 16, 6, 8, 14, 3, 6, 6, 7, 21, 47, 3, 37, 5, 13, 4, 53, 3, 20, 9, 6, 29, 59, 4, 16, 15, 10, 4, 32, 9, 67, 12, 20, 2, 71, 1, 18, 2, 7, 15, 16, 6, 78, 5, 28, 6, 83, 6, 43, 12, 26, 12
Offset: 1

Views

Author

Altug Alkan, Feb 09 2017

Keywords

Comments

See A171935 for least positive k such that phi(n) = phi(n+k), or 0 if no such k exists.
See also logarithmic scatterplot of this sequence. - Altug Alkan, Feb 09 2017

Examples

			a(5) = 3 because phi(5) = 4 divides phi(5 + 3) = 4 and 3 is the least positive number with this property.
		

Crossrefs

Programs

  • Mathematica
    f[n_] := Block[{k = 1}, While[ Mod[ EulerPhi[n + k], EulerPhi[ n]] > 0, k++]; k]; Array[f, 88] (* Robert G. Wilson v, Feb 09 2017 *)
  • PARI
    a(n) = my(k = 1); while (eulerphi(n+k) % eulerphi(n) != 0, k++); k;

Formula

a(n) << n^5 as a consequence of Xylouris' form of Linnik's theorem: phi(n) is at most n-1, and a(n) is at most the least prime which is 1 mod phi(n). - Charles R Greathouse IV, Feb 09 2017
a(n) = A069797(n) - n. - Altug Alkan, Feb 10 2017
Showing 1-1 of 1 results.