Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #24 Apr 25 2024 01:06:23
%S 0,2,6,4,14,12,8,10,30,28,24,26,16,18,22,20,62,60,56,58,48,50,54,52,
%T 32,34,38,36,46,44,40,42,126,124,120,122,112,114,118,116,96,98,102,
%U 100,110,108,104,106,64,66,70,68,78,76,72,74,94,92,88,90,80,82,86,84,254,252,248,250,240,242,246,244,224,226
%N a(n) = 2*A006068(n); main diagonal of A268714.
%H Antti Karttunen, <a href="/A268716/b268716.txt">Table of n, a(n) for n = 0..8191</a>
%F a(n) = 2*A006068(n).
%F a(n) = A006068(A001969(n+1)).
%F a(n) = A268714(n,n).
%o (Scheme) (define (A268716 n) (* 2 (A006068 n)))
%o (Python)
%o def A268716(n):
%o k, m = n, n>>1
%o while m > 0:
%o k ^= m
%o m >>= 1
%o return k<<1 # _Chai Wah Wu_, Jun 30 2022
%Y Cf. A001969, A006068.
%Y Main diagonal of array A268714.
%Y Row 3 and column 3 of array A268724.
%K nonn
%O 0,2
%A _Antti Karttunen_, Feb 12 2016