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!)
A066086 Greatest common divisor of product (p-1) and product (p+1), where p ranges over distinct prime divisors of n; a(n) = gcd(A048250(n), A173557(n)). 16

%I #26 Dec 05 2018 08:00:22

%S 1,1,2,1,2,2,2,1,2,2,2,2,2,6,8,1,2,2,2,2,4,2,2,2,2,6,2,6,2,8,2,1,4,2,

%T 24,2,2,6,8,2,2,12,2,2,8,2,2,2,2,2,8,6,2,2,8,6,4,2,2,8,2,6,4,1,12,4,2,

%U 2,4,24,2,2,2,6,8,6,12,24,2,2,2,2,2,12,4,6,8,2,2,8,8,2,4,2,24,2,2,6,4

%N Greatest common divisor of product (p-1) and product (p+1), where p ranges over distinct prime divisors of n; a(n) = gcd(A048250(n), A173557(n)).

%C Frequently equal, but not identical, to A009223 (i.e. GCD of sigma and phi of n).

%H Antti Karttunen, <a href="/A066086/b066086.txt">Table of n, a(n) for n = 1..23374</a>

%H Antti Karttunen, <a href="/A066086/a066086.txt">Data supplement: n, a(n) computed for n = 1..100000</a>

%F a(n) = gcd(A048250(n), A023900(n)) = gcd(A000203(A007947(n)), A000010(A007947(n))).

%F a(n) = A322360(n) / A322359(n). - _Antti Karttunen_, Dec 04 2018

%t ffi[x_] := Flatten[FactorInteger[x]] lf[x_] := Length[FactorInteger[x]] ba[x_] := Table[Part[ffi[x], 2*w-1], {w, 1, lf[x]}] cor[x_] := Apply[Times, ba[x]] g1[x_] := GCD[DivisorSigma[1, x], EulerPhi[x]] g2[x_] := GCD[DivisorSigma[1, cor[x]], EulerPhi[cor[x]]] Table[g2[w], {w, 1, 128}]

%t a[n_] := If[n == 1, 1, Module[{f=FactorInteger[n]}, GCD[Times@@((#-1)& @@@ f), Times@@((#+1)& @@@ f)]]]; Array[a, 100] (* _Amiram Eldar_, Dec 05 2018 *)

%o (PARI) a(n)=my(f=factor(n)[,1]);gcd(prod(i=1,#f,f[i]+1),prod(i=1,#f,f[i]-1)) \\ _Charles R Greathouse IV_, Feb 14 2013

%Y Cf. A048250, A173557, A023900, A000203, A007947, A000010, A009223, A066087, A322359, A322360, A322362.

%K nonn

%O 1,3

%A _Labos Elemer_, Dec 04 2001

%E Name edited, part of the old name transferred to the formula section by _Antti Karttunen_, Dec 04 2018

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 10:29 EDT 2024. Contains 371905 sequences. (Running on oeis4.)