OFFSET
0,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..1000
PROG
(Haskell)
a246701 n = a246701_list !! n
a246701_list = zipWith (-) (tail a246520_list) a246520_list
(Python)
def A246701(n):
....return(max(int(bin(n+1-k)[2:]+bin(n+1+k)[2:], 2) for k in range(n+2)) -max(int(bin(n-k)[2:]+bin(n+k)[2:], 2) for k in range(n+1)))
# Chai Wah Wu, Sep 07 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Sep 04 2014
STATUS
approved