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.

A268716 a(n) = 2*A006068(n); main diagonal of A268714.

This page as a plain text file.
%I A268716 #24 Apr 25 2024 01:06:23
%S A268716 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 A268716 32,34,38,36,46,44,40,42,126,124,120,122,112,114,118,116,96,98,102,
%U A268716 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 A268716 a(n) = 2*A006068(n); main diagonal of A268714.
%H A268716 Antti Karttunen, <a href="/A268716/b268716.txt">Table of n, a(n) for n = 0..8191</a>
%F A268716 a(n) = 2*A006068(n).
%F A268716 a(n) = A006068(A001969(n+1)).
%F A268716 a(n) = A268714(n,n).
%o A268716 (Scheme) (define (A268716 n) (* 2 (A006068 n)))
%o A268716 (Python)
%o A268716 def A268716(n):
%o A268716     k, m = n, n>>1
%o A268716     while m > 0:
%o A268716         k ^= m
%o A268716         m >>= 1
%o A268716     return k<<1 # _Chai Wah Wu_, Jun 30 2022
%Y A268716 Cf. A001969, A006068.
%Y A268716 Main diagonal of array A268714.
%Y A268716 Row 3 and column 3 of array A268724.
%K A268716 nonn
%O A268716 0,2
%A A268716 _Antti Karttunen_, Feb 12 2016