OFFSET
0,1
LINKS
FORMULA
PROG
(PARI)
A269160(n) = bitxor(n, bitor(2*n, 4*n));
A163617(n) = bitor(n, n<<1);
\\ Use this one for writing b-files:
A328104write(up_to) = { my(s=1, n=0); for(n=0, up_to, write("b328104.txt", n, " ", bitor(s, s<<1)); s = A269160(s)); };
(Python)
def A269160(n): return(n^((n<<1)|(n<<2)))
def genA328104():
'''Yield successive terms of A328104.'''
s = 1
while True:
yield (s|(s<<1))
s = A269160(s)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 04 2019
STATUS
approved