# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a339904 Showing 1-1 of 1 %I A339904 #12 Dec 29 2020 20:37:49 %S A339904 1,1,1,3,3,1,5,9,5,3,3,3,1,5,3,27,9,5,11,9,5,3,7,9,21,1,25,15,15,3,9, %T A339904 81,3,9,15,15,5,11,1,27,21,5,23,9,15,7,13,27,55,21,9,3,29,25,9,45,11, %U A339904 15,15,9,33,9,25,243,3,3,35,27,7,15,9,45,39,5,21,33,15,1,41,81,125,21,11,15,27,23,15,27,3,15 %N A339904 The odd part of {Euler totient function phi applied to the prime shifted n}: a(n) = A000265(A000010(A003961(n))). %H A339904 Antti Karttunen, Table of n, a(n) for n = 1..8191 %H A339904 Antti Karttunen, Data supplement: n, a(n) computed for n = 1..65537 %H A339904 Index entries for sequences computed from indices in prime factorization %F A339904 Multiplicative with a(p^e) = A000265(q-1) * q^(e-1), where q = A151800(p), the next prime larger than p. %F A339904 a(n) = A000265(A003972(n)) = A053575(A003961(n)) = A000265(A000010(A003961(n))). %F A339904 For all squarefree numbers k, a(k) = A339903(k). %o A339904 (PARI) %o A339904 A000265(n) = (n>>valuation(n,2)); %o A339904 A339904(n) = if(1==n,n,my(f=factor(n)); prod(i=1,#f~,my(q=nextprime(1+f[i,1])); A000265(q-1)*(q^(f[i,2]-1)))); %o A339904 (PARI) %o A339904 A003961(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); }; %o A339904 A339903(n) = A000265(eulerphi(A003961(n))); %Y A339904 Cf. A000010, A000265, A003961, A003972, A005117, A053575, A151800, A339903, A340075. %K A339904 nonn,mult %O A339904 1,4 %A A339904 _Antti Karttunen_, Dec 29 2020 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE