login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A116550 The bi-unitary analog of Euler's totient function of n. 10

%I #43 Jul 16 2022 07:09:30

%S 1,1,2,3,4,3,6,7,8,6,10,8,12,9,9,15,16,12,18,14,14,15,22,17,24,18,26,

%T 21,28,15,30,31,23,24,25,29,36,27,28,31,40,21,42,35,34,33,46,36,48,36,

%U 37,42,52,39,42,46,42,42,58,34,60,45,51,63,50,35,66,56,51,38,70,62,72,54

%N The bi-unitary analog of Euler's totient function of n.

%C a(1)=1; for n>1, a(n) is the number of numbers m<n such that A225174(m,n)=1. - _N. J. A. Sloane_, May 01 2013

%D M. Lal, H. Wareham and R. Mifflin, Iterates of the bi-unitary totient function, Utilitas Math., 10 (1976), 347-350.

%H Donovan Johnson, <a href="/A116550/b116550.txt">Table of n, a(n) for n = 1..10000</a>

%H László Tóth, <a href="https://cs.uwaterloo.ca/journals/JIS/VOL12/Toth2/toth5.html">On the Bi-Unitary Analogues of Euler's Arithmetical Function and the Gcd-Sum Function</a>, JIS, Vol. 12 (2009), Article 09.5.2, function phi**(n).

%F For n>1, if n = product{p=primes,p|n} p^b(n,p), where each b(n,p) is a positive integer, then a(n) is number of positive integers m, m < n, such that each b(m,p) does not equal b(n,p).

%F a(n) = Sum_{d|n, gcd(d,n/d)=1} (-1)^omega(d) * phi(x, n), where phi(x, n) = #{1 <= k <= x, gcd(k, n) = 1} = Sum_{d|n} mu(d) * floor(x/d) (Tóth, 2009). - _Amiram Eldar_, Jul 16 2022

%e 12 = 2^2 * 3^1. Of the positive integers < 12, there are 8 integers where no prime divides these integers the same number of times the prime divides 12: 1, 2 = 2^1, 5 = 5^1, 7 = 7^1, 8 = 2^3, 9 = 3^2, 10 = 2^1 *5^1 and 11 = 11^1. So a(12) = 8. The other positive integers < 12 (3 = 3^1, 4 = 2^2 and 6 = 2^1 * 3^1) each are divisible by at least one prime the same number of times this prime divides 12.

%p # returns the greatest common unitary divisor of m and n, A225174(m,n)

%p f:=proc(m,n)

%p local i,ans;

%p ans:=1;

%p for i from 1 to min(m,n) do

%p if ((m mod i) = 0) and (igcd(i,m/i) = 1) then

%p if ((n mod i) = 0) and (igcd(i,n/i) = 1) then ans:=i; fi;

%p fi;

%p od;

%p ans; end;

%p A116550:=proc(n)

%p global f; local ct,m;

%p ct:=0;

%p if n = 1 then RETURN(1) else

%p for m from 1 to n-1 do

%p if f(m,n)=1 then ct:=ct+1; fi;

%p od:

%p fi;

%p ct;

%p end; # _N. J. A. Sloane_, May 01 2013

%p A116550 := proc(n)

%p local a,k;

%p a := 0 ;

%p for k from 1 to n do

%p if A165430(k,n) = 1 then

%p a := a+1 ;

%p end if ;

%p end do:

%p a ;

%p end proc: # _R. J. Mathar_, Jul 21 2016

%t a[1] = 1; a[n_] := With[{pp = Power @@@ FactorInteger[n]}, Count[Range[n], m_ /; Intersection[pp, Power @@@ FactorInteger[m]] == {}]]; Table[a[n], {n, 1, 90}] (* _Jean-François Alcover_, Sep 05 2013 *)

%t phi[x_, n_] := DivisorSum[n, MoebiusMu[#]*Floor[x/#] &]; a[n_] := DivisorSum[n, (-1)^PrimeNu[#]*phi[n/#, #] &, CoprimeQ[#, n/#] &]; Array[a, 100] (* _Amiram Eldar_, Jul 16 2022 *)

%o (PARI) udivs(n) = {my(d = divisors(n)); select(x->(gcd(x, n/x)==1), d); }

%o gcud(n, m) = vecmax(setintersect(udivs(n), udivs(m)));

%o a(n) = if (n==1, 1, sum(k=1, n-1, gcud(n, k) == 1)); \\ _Michel Marcus_, Nov 09 2017

%o (PARI) phi(x,n) = sumdiv(n, d, moebius(d)*floor(x/d));

%o a(n) = sumdiv(n, d, (gcd(d, n/d) == 1) * (-1)^omega(d) * phi(n/d,d)); \\ _Amiram Eldar_, Jul 16 2022

%Y Cf. A225174, A005424, A225175, A225176, A000010, A047994.

%K nonn

%O 1,3

%A _Leroy Quet_, Mar 16 2006

%E More terms from _R. J. Mathar_, Jan 23 2008

%E Entry revised by _N. J. A. Sloane_, May 01 2013

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 18:16 EDT 2024. Contains 371916 sequences. (Running on oeis4.)