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

 


a(n) = Product_{primes p dividing n} (p-1).
89

%I #71 Sep 09 2023 06:55:29

%S 1,1,2,1,4,2,6,1,2,4,10,2,12,6,8,1,16,2,18,4,12,10,22,2,4,12,2,6,28,8,

%T 30,1,20,16,24,2,36,18,24,4,40,12,42,10,8,22,46,2,6,4,32,12,52,2,40,6,

%U 36,28,58,8,60,30,12,1,48,20,66,16,44,24,70,2,72,36

%N a(n) = Product_{primes p dividing n} (p-1).

%C This is A023900 without the signs. - _T. D. Noe_, Jul 31 2013

%C Numerator of c_n = Product_{odd p| n} (p-1)/(p-2). Denominator is A305444. The initial values c_1, c_2, ... are 1, 1, 2, 1, 4/3, 2, 6/5, 1, 2, 4/3, 10/9, 2, 12/11, 6/5, 8/3, 1, 16/15, ... [Yamasaki and Yamasaki]. - _N. J. A. Sloane_, Jan 19 2020

%C Kim et al. (2019) named this function the absolute Möbius divisor function. - _Amiram Eldar_, Apr 08 2020

%H Alois P. Heinz, <a href="/A173557/b173557.txt">Table of n, a(n) for n = 1..65536</a> (first 1000 terms from T. D. Noe)

%H Daeyeoul Kim, Umit Sarp, and Sebahattin Ikikardes, <a href="http://dx.doi.org/10.18514/MMN.2019.2470">Certain combinatoric convolution sums arising from Bernoulli and Euler Polynomials</a>, Miskolc Mathematical Notes, No. 20, Vol. 1 (2019): pp. 311-330.

%H Daeyeoul Kim, Umit Sarp, and Sebahattin Ikikardes, <a href="https://doi.org/10.3390/math7111083">Iterating the Sum of Möbius Divisor Function and Euler Totient Function</a>, Mathematics, Vol. 7, No. 11 (2019), pp. 1083-1094.

%H Yamasaki, Yasuo, and Aiichi Yamasaki, <a href="https://repository.kulib.kyoto-u.ac.jp/dspace/bitstream/2433/84326/1/0887-10.pdf">On the Gap Distribution of Prime Numbers</a>, Kyoto University Research Information Repository, October 1994. MR1370273 (97a:11141).

%F a(n) = A003958(n) iff n is squarefree. a(n) = |A023900(n)|.

%F Multiplicative with a(p^e) = p-1, e >= 1. - _R. J. Mathar_, Mar 30 2011

%F a(n) = phi(rad(n)) = A000010(A007947(n)). - _Enrique Pérez Herrero_, May 30 2012

%F a(n) = A000010(n) / A003557(n). - _Jason Kimberley_, Dec 09 2012

%F Dirichlet g.f.: zeta(s) * Product_{p prime} (1 - 2p^(-s) + p^(1-s)). The Dirichlet inverse is multiplicative with b(p^e) = (1 - p) * (2 - p)^(e - 1) = Sum_k A118800(e, k) * p^k. - _Álvar Ibeas_, Nov 24 2017

%F a(1) = 1; for n > 1, a(n) = (A020639(n)-1) * a(A028234(n)). - _Antti Karttunen_, Nov 28 2017

%F From _Vaclav Kotesovec_, Jun 18 2020: (Start)

%F Dirichlet g.f.: zeta(s) * zeta(s-1) / zeta(2*s-2) * Product_{p prime} (1 - 2/(p + p^s)).

%F Sum_{k=1..n} a(k) ~ c * n^2 / 2, where c = A307868 = Product_{p prime} (1 - 2/(p*(p+1))) = 0.471680613612997868... (End)

%F a(n) = (-1)^A001221(n)*A023900(n). - _M. F. Hasler_, Aug 14 2021

%e 300 = 3*5^2*2^2 => a(300) = (3-1)*(2-1)*(5-1) = 8.

%p A173557 := proc(n) local dvs; dvs := numtheory[factorset](n) ; mul(d-1,d=dvs) ; end proc: # _R. J. Mathar_, Feb 02 2011

%p # second Maple program:

%p a:= n-> mul(i[1]-1, i=ifactors(n)[2]):

%p seq(a(n), n=1..80); # _Alois P. Heinz_, Aug 27 2018

%t a[n_] := Module[{fac = FactorInteger[n]}, If[n==1, 1, Product[fac[[i, 1]]-1, {i, Length[fac]}]]]; Table[a[n], {n, 100}]

%o (Haskell)

%o a173557 1 = 1

%o a173557 n = product $ map (subtract 1) $ a027748_row n

%o -- _Reinhard Zumkeller_, Jun 01 2015

%o (PARI) a(n) = my(f=factor(n)[,1]); prod(k=1, #f, f[k]-1); \\ _Michel Marcus_, Oct 31 2017

%o (PARI) for(n=1, 100, print1(direuler(p=2, n, (1 - 2*X + p*X)/(1 - X))[n], ", ")) \\ _Vaclav Kotesovec_, Jun 18 2020

%o (PARI) apply( {A173557(n)=vecprod([p-1|p<-factor(n)[,1]])}, [1..77]) \\ _M. F. Hasler_, Aug 14 2021

%o (Scheme, with memoization-macro definec) (definec (A173557 n) (if (= 1 n) 1 (* (- (A020639 n) 1) (A173557 (A028234 n))))) ;; _Antti Karttunen_, Nov 28 2017

%o (Magma) [EulerPhi(n)/(&+[(Floor(k^n/n)-Floor((k^n-1)/n)): k in [1..n]]): n in [1..100]]; // _Vincenzo Librandi_, Jan 20 2020

%o (Python)

%o from math import prod

%o from sympy import primefactors

%o def A173557(n): return prod(p-1 for p in primefactors(n)) # _Chai Wah Wu_, Sep 08 2023

%Y Cf. A023900, A141564, A027748, A305444, A307868.

%K nonn,easy,mult

%O 1,3

%A _José María Grau Ribas_, Feb 21 2010

%E Definition corrected by _M. F. Hasler_, Aug 14 2021

%E Incorrect formula removed by _Pontus von Brömssen_, Aug 15 2021

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 20 13:29 EDT 2024. Contains 376072 sequences. (Running on oeis4.)