proposed
approved
proposed
approved
editing
proposed
editing
proposed
(Python)
def A257971(n): return sum(int(not r & ~(n+2-r))*2**(n//2+1-r) for r in range(n//2+2)) if n & 1 else -sum(int(not r & ~(n-1-r))*2**(n//2-1-r) for r in range(n//2)) # Chai Wah Wu, Jun 20 2022
approved
editing
editing
approved
allocated for Reinhard ZumkellerFirst differences of A006921.
0, 2, -1, 5, -2, 8, -5, 21, -8, 34, -21, 81, -34, 128, -81, 337, -128, 546, -337, 1301, -546, 2056, -1301, 5381, -2056, 8706, -5381, 20737, -8706, 32768, -20737, 86273, -32768, 139778, -86273, 333061, -139778, 526344, -333061, 1377557, -526344, 2228770
0,2
Reinhard Zumkeller, <a href="/A257971/b257971.txt">Table of n, a(n) for n = 0..1000</a>
allocated
sign
Reinhard Zumkeller, Jul 14 2015
approved
editing
allocated for Reinhard Zumkeller
recycled
allocated
editing
approved