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.

A332530 Numbers k such that k and k + 1 has the same value of A319445, the equivalent of the Euler totient function in the ring of Eisenstein integers.

Original entry on oeis.org

34, 51, 152, 679, 1065, 1845, 6525, 12122, 12970, 15656, 38607, 48398, 175473, 272935, 401505, 953342, 1035895, 1210054, 1222988, 1406665, 1589245, 1607095, 2108186, 2116975, 2272425, 2500615, 2751160, 3399591, 4542225, 5298559, 5412986, 6813585, 6898736, 7115553
Offset: 1

Views

Author

Amiram Eldar, Feb 15 2020

Keywords

Examples

			34 is a term since A319445(34) = A319445(35) = 864.
		

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := If[p == 3, 2*3^(2*e - 1), Switch[Mod[p, 3], 1, (p - 1)^2*p^(2*e - 2), 2, (p^2 - 1)*p^(2*e - 2)]]; eisPhi[1] = 1; eisPhi[n_] := Times @@ f @@@ FactorInteger[n]; seq = {}; e1 = eisPhi[1]; Do[e2 = eisPhi[n]; If[e1 == e2, AppendTo[seq, n - 1]]; e1 = e2, {n, 2, 10^6}]; seq