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.

A322362 a(n) = gcd(n, A166590(n)), where A166590 is completely multiplicative with a(p) = p+2 for prime p.

This page as a plain text file.
%I A322362 #12 Dec 05 2018 08:01:20
%S A322362 1,2,1,4,1,2,1,8,1,2,1,4,1,2,5,16,1,2,1,4,3,2,1,8,1,2,1,4,1,10,1,32,1,
%T A322362 2,7,4,1,2,3,8,1,6,1,4,5,2,1,16,1,2,1,4,1,2,1,8,3,2,1,20,1,2,9,64,5,2,
%U A322362 1,4,1,14,1,8,1,2,5,4,1,6,1,16,1,2,1,12,1,2,1,8,1,10,1,4,3,2,1,32,1,2,1,4,1,2,1,8,105
%N A322362 a(n) = gcd(n, A166590(n)), where A166590 is completely multiplicative with a(p) = p+2 for prime p.
%H A322362 Antti Karttunen, <a href="/A322362/b322362.txt">Table of n, a(n) for n = 1..16384</a>
%H A322362 Antti Karttunen, <a href="/A322362/a322362.txt">Data supplement: n, a(n) computed for n = 1..100000</a>
%F A322362 a(n) = gcd(n, A166590(n)).
%F A322362 a(A037074(n)) = A006512(n).
%t A322362 a[n_] := If[n == 1, 1, GCD[n, Times@@ ((First[#]+2)^Last[#] &/@FactorInteger[n])]]; Array[a, 120] (* _Amiram Eldar_, Dec 05 2018~ *)
%o A322362 (PARI)
%o A322362 A166590(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1] += 2); factorback(f); };
%o A322362 A322362(n) = gcd(n, A166590(n));
%Y A322362 Cf. A001359, A006512, A037074, A066086, A166590, A322361.
%K A322362 nonn
%O A322362 1,2
%A A322362 _Antti Karttunen_, Dec 05 2018