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 A293212 #47 Jun 03 2025 11:56:41 %S A293212 2,3,2,5,1,7,2,3,7,11,1,13,5,6,2,17,1,19,7,4,9,23,1,5,15,3,5,29,4,31, %T A293212 2,8,19,2,1,37,17,14,7,41,6,43,9,6,21,47,1,7,7,18,15,53,1,14,5,16,31, %U A293212 59,4,61,29,4,2,8,10,67,19,20,0,71,1,73,39,6,17 %N A293212 Binary XOR of prime divisors of n. %C A293212 The sequence of indices of zeros begins: 70, 140, 280, 350, 490, 560, 646, 700, 980, 1120, 1292, 1400, 1750, 1798, 1960, 2145. %H A293212 Alois P. Heinz, <a href="/A293212/b293212.txt">Table of n, a(n) for n = 2..20000</a> %F A293212 a(n) = n iff n is a prime. %e A293212 a(6) = a(24) = 2 XOR 3 = 1. %e A293212 a(2145) = 3 XOR 5 XOR 11 XOR 13 = 0. %p A293212 a:= proc(n) local d, r; r:=0; for d in numtheory %p A293212 [factorset](n) do r:= Bits[Xor](r, d) od; r %p A293212 end: %p A293212 seq(a(n), n=2..100); # _Alois P. Heinz_, Mar 09 2018 %o A293212 (PARI) a(n) = my(vp = factor(n)[,1]~, k=0); for (i=1, #vp, k = bitxor(k, vp[i])); k; \\ _Michel Marcus_, Feb 05 2018 %o A293212 (Python) %o A293212 from functools import reduce %o A293212 from operator import xor %o A293212 from sympy import primefactors %o A293212 def A293212(n): return reduce(xor,primefactors(n)) # _Chai Wah Wu_, Jun 03 2025 %Y A293212 Cf. A000040, A072594, A178910. %K A293212 nonn,base %O A293212 2,1 %A A293212 _Alex Ratushnyak_, Feb 04 2018