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.
%I A327163 #6 Sep 05 2019 20:49:15 %S A327163 1,2,2,2,2,3,2,2,2,4,2,5,2,4,6,2,2,7,2,8,2,4,2,9,2,4,2,5,2,7,2,2,6,4, %T A327163 2,4,2,4,2,4,2,7,2,5,10,4,2,5,2,4,6,4,2,7,2,11,2,4,2,12,2,4,2,2,2,7,2, %U A327163 4,6,4,2,13,2,4,2,5,2,7,2,4,2,4,2,5,2,4,6,5,2,14,15,5,2,4,16,9,2,4,6,8,2,7,2,4,6 %N A327163 Lexicographically earliest sequence such that for all i, j, a(i) = a(j) => f(i) = f(j), where f(n) = gcd(n,usigma(n)) * (-1)^[gcd(n,usigma(n))==n], and usigma is the sum of unitary divisors of n (A034448). %C A327163 Restricted growth sequence transform of function f, defined as f(n) = -A323166(n) = -n when n is one of unitary multiply-perfect numbers (A327158), otherwise f(n) = A323166(n) = gcd(n,A034448(n)) %C A327163 For all i, j: %C A327163 A305800(i) = A305800(j) => a(i) = a(j) => A327164(i) = A327164(j). %H A327163 Antti Karttunen, <a href="/A327163/b327163.txt">Table of n, a(n) for n = 1..87360</a> %o A327163 (PARI) %o A327163 up_to = 87360; %o A327163 rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om,invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om,invec[i],i); outvec[i] = u; u++ )); outvec; }; %o A327163 A034448(n) = { my(f=factorint(n)); prod(k=1, #f~, 1+(f[k, 1]^f[k, 2])); }; \\ After code in A034448 %o A327163 A323166(n) = gcd(n, A034448(n)); %o A327163 Aux327163(n) = { my(u=A323166(n)); u*((-1)^(u==n)); }; %o A327163 v327163 = rgs_transform(vector(up_to, n, Aux327163(n))); %o A327163 A327163(n) = v327163[n]; %Y A327163 Cf. A034448, A305800, A323166, A327158, A327164. %Y A327163 Cf. also A326193. %K A327163 nonn %O A327163 1,2 %A A327163 _Antti Karttunen_, Aug 28 2019