OFFSET
1,1
COMMENTS
FORMULA
PROG
(PARI) {a(n)=bitxor(2^(n+2)-2^((n-2)%4)-8*((n+2)\4), 2^(n+3)-2^((n-1)%4)-8*((n+3)\4))}
(Python)
def A101121(n): return ((1<<(n+2))-(1<<((n-2)&3))-(((n+2)&-4)<<1))^((1<<(n+3))-(1<<((n-1)&3))-(((n+3)&-4)<<1)) # Chai Wah Wu, Jul 10 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Simon Plouffe and Paul D. Hanna, Dec 02 2004
STATUS
approved