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.

A291682 Numbers k such that phi(psi(phi(k))) = psi(phi(psi(k))).

This page as a plain text file.
%I A291682 #27 Jan 15 2020 05:52:42
%S A291682 1,11,19,23,25,31,41,47,59,67,71,77,79,89,95,101,109,121,127,131,137,
%T A291682 139,143,149,155,161,175,181,191,199,287,299,311,319,323,325,329,335,
%U A291682 341,379,383,395,407,409,413,419,439,461,463,475,479,491,497,527,529,533,539,545,569,599,611,623,635
%N A291682 Numbers k such that phi(psi(phi(k))) = psi(phi(psi(k))).
%C A291682 Prime terms are 11, 19, 23, 31, 41, 47, 59, 67, 71, 79, 89, 101, 109, 127, 131, ...
%C A291682 Up to 10^9, twin prime pairs in this sequence are (137, 139), (461, 463), (1019, 1021), (1427, 1429), (2969, 2971), (4229, 4231).
%H A291682 Amiram Eldar, <a href="/A291682/b291682.txt">Table of n, a(n) for n = 1..10000</a>
%e A291682 11 is a term because phi(psi(phi(11))) = psi(phi(psi(11))).
%t A291682 psi[n_] := If[n < 1, 0, n Sum[MoebiusMu[d]^2/d, {d, Divisors@n}]]; fQ[n_] := EulerPhi[psi[EulerPhi[n]]] == psi[EulerPhi[psi[n]]]; Select[Range@635, fQ] (* _Robert G. Wilson v_, Sep 23 2017 *)
%o A291682 (PARI) a001615(n) = my(f=factor(n)); prod(i=1, #f~, f[i, 1]^f[i, 2] + f[i, 1]^(f[i, 2]-1));
%o A291682 isok(n) = a001615(eulerphi(a001615(n)))==eulerphi(a001615(eulerphi(n))); \\ after _Charles R Greathouse IV_ at A001615
%Y A291682 Cf. A000010, A001615, A067160, A290002.
%K A291682 nonn,easy
%O A291682 1,2
%A A291682 _Altug Alkan_, Sep 04 2017