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.

A306528 Numbers k such that gcd(k, phi(k)) = gcd(k, psi(k)).

This page as a plain text file.
%I A306528 #37 Mar 21 2019 04:38:16
%S A306528 1,2,3,4,5,7,8,9,10,11,13,14,16,17,19,20,22,23,25,26,27,28,29,31,32,
%T A306528 34,35,37,38,40,41,42,43,44,46,47,49,50,52,53,56,58,59,61,62,64,65,67,
%U A306528 68,70,71,73,74,76,77,78,79,80,81,82,83,84,85,86,88,89,92,94,97,98,100
%N A306528 Numbers k such that gcd(k, phi(k)) = gcd(k, psi(k)).
%C A306528 Here phi(n) is Euler's totient function A000010 and psi(n) is Dedekind's psi function A001615.
%C A306528 This sequence contains all prime powers p^k where phi(p^k) and psi(p^k) are equidistant from p^k, and gcd(p^k, phi(p^k)) = gcd(p^k, psi(p^k)) = p^(k - 1). For the prime numbers themselves this is trivial since phi(p) and psi(p) differ from p by 1 and 1^0 = 1.
%C A306528 If prime p|k, then p*k is in the sequence if and only if k is in the sequence. - _Robert Israel_, Mar 05 2019
%e A306528 1 is a term because gcd(1, 1) = gcd(1, 1) = 1.
%e A306528 2 is a term because gcd(2, 1) = gcd(2, 3) = 1.
%e A306528 3 is a term because gcd(3, 2) = gcd(3, 4) = 1.
%e A306528 4 is a term because gcd(4, 2) = gcd(4, 6) = 2.
%e A306528 5 is a term because gcd(5, 4) = gcd(5, 6) = 1.
%e A306528 6 is not a term because gcd(6, 2) <> gcd(6, 12).
%e A306528 7 is a term because gcd(7, 6) = gcd(7, 8) = 1.
%p A306528 filter:= proc(n) local p,F;
%p A306528   F:= numtheory:-factorset(n);
%p A306528   igcd(n, n*mul(1-1/p, p=F)) = igcd(n, n*mul(1+1/p,p=F))
%p A306528 end proc:
%p A306528 select(filter, [$1..200]); # _Robert Israel_, Mar 05 2019
%o A306528 (PARI) dpsi(n) = n * sumdivmult(n, d, issquarefree(d)/d); \\ A001615
%o A306528 isok(k) = gcd(k, eulerphi(k)) == gcd(k, dpsi(k)); \\ _Michel Marcus_, Feb 27 2019
%Y A306528 Cf. A000010, A001615, A009195, A306695.
%K A306528 nonn
%O A306528 1,2
%A A306528 _Torlach Rush_, Feb 21 2019