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 A351254 #9 Feb 06 2022 21:25:35 %S A351254 0,0,0,2,0,0,0,0,0,2,6,0,0,0,0,8,0,0,0,0,6,2,0,0,0,12,0,2,0,0,0,0,0,2, %T A351254 0,30,0,0,0,2,6,0,30,0,0,8,0,0,0,30,12,2,0,0,0,6,30,2,0,0,0,0,0,32,0, %U A351254 0,0,0,0,2,36,0,0,0,0,14,0,30,0,0,6,2,0,0,30,6,0,2,0,0,0,30,0,2,0,0,0,0,60,2,6 %N A351254 a(n) = A276085(gcd(n, A276086(n))). %H A351254 Antti Karttunen, <a href="/A351254/b351254.txt">Table of n, a(n) for n = 0..65537</a> %F A351254 a(n) = A276085(A324198(n)) = A276085(gcd(n, A276086(n))). %F A351254 a(n) = n - A351253(n). %o A351254 (PARI) %o A351254 A002110(n) = prod(i=1,n,prime(i)); %o A351254 A276085(n) = { my(f = factor(n)); sum(k=1, #f~, f[k, 2]*A002110(primepi(f[k, 1])-1)); }; %o A351254 A324198(n) = { my(m=1, p=2, orgn=n); while(n, m *= (p^min(n%p, valuation(orgn, p))); n = n\p; p = nextprime(1+p)); (m); }; %o A351254 A351254(n) = A276085(A324198(n)); %Y A351254 Cf. A276085, A276086, A324198, A351253. %Y A351254 Cf. also A351234. %Y A351254 Cf. A324583 (positions of the rest of zeros after a(0)=0). %K A351254 nonn,easy %O A351254 0,4 %A A351254 _Antti Karttunen_, Feb 05 2022