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.

A319338 Filter sequence combining the 2-adic valuation of n (A007814) with gcd(n,sigma(n)) (A009194).

This page as a plain text file.
%I A319338 #6 Sep 24 2018 17:46:26
%S A319338 1,2,1,3,1,4,1,5,1,6,1,7,1,6,8,9,1,10,1,11,1,6,1,12,1,6,1,13,1,4,1,14,
%T A319338 8,6,1,3,1,6,1,15,1,4,1,7,8,6,1,16,1,2,8,11,1,4,1,17,1,6,1,18,1,6,1,
%U A319338 19,1,4,1,11,8,6,1,20,1,6,1,7,1,4,1,21,1,6,1,13,1,6,8,22,1,23,24,7,1,6,25,26,1,2,8,3,1,4,1,27,8
%N A319338 Filter sequence combining the 2-adic valuation of n (A007814) with gcd(n,sigma(n)) (A009194).
%C A319338 Restricted growth sequence transform of ordered pair [A007814(n), A009194(n)].
%H A319338 Antti Karttunen, <a href="/A319338/b319338.txt">Table of n, a(n) for n = 1..65537</a>
%o A319338 (PARI)
%o A319338 up_to = 65537;
%o A319338 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 A319338 A007814(n) = valuation(n,2);
%o A319338 A009194(n) = gcd(n, sigma(n));
%o A319338 v319338 = rgs_transform(vector(up_to,n,[A007814(n),A009194(n)]));
%o A319338 A319338(n) = v319338[n];
%Y A319338 Cf. A007814, A009194, A305801, A319346.
%K A319338 nonn
%O A319338 1,2
%A A319338 _Antti Karttunen_, Sep 24 2018