login

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”).

A268716
a(n) = 2*A006068(n); main diagonal of A268714.
4
0, 2, 6, 4, 14, 12, 8, 10, 30, 28, 24, 26, 16, 18, 22, 20, 62, 60, 56, 58, 48, 50, 54, 52, 32, 34, 38, 36, 46, 44, 40, 42, 126, 124, 120, 122, 112, 114, 118, 116, 96, 98, 102, 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
OFFSET
0,2
LINKS
FORMULA
a(n) = 2*A006068(n).
a(n) = A006068(A001969(n+1)).
a(n) = A268714(n,n).
PROG
(Scheme) (define (A268716 n) (* 2 (A006068 n)))
(Python)
def A268716(n):
k, m = n, n>>1
while m > 0:
k ^= m
m >>= 1
return k<<1 # Chai Wah Wu, Jun 30 2022
CROSSREFS
Main diagonal of array A268714.
Row 3 and column 3 of array A268724.
Sequence in context: A365902 A303823 A286712 * A204985 A255066 A184364
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 12 2016
STATUS
approved