login
A048726
a(n) = Xmult(n,6), or 2*A048724(n).
4
0, 6, 12, 10, 24, 30, 20, 18, 48, 54, 60, 58, 40, 46, 36, 34, 96, 102, 108, 106, 120, 126, 116, 114, 80, 86, 92, 90, 72, 78, 68, 66, 192, 198, 204, 202, 216, 222, 212, 210, 240, 246, 252, 250, 232, 238, 228, 226, 160, 166, 172, 170, 184, 190, 180, 178, 144, 150
OFFSET
0,2
MATHEMATICA
Table[ BitXor[4n, 2n], {n, 0, 60}] (* Robert G. Wilson v, Jul 06 2006 *)
PROG
(PARI) a(n)=bitxor(2*n, 4*n) \\ Charles R Greathouse IV, Oct 03 2016
(Python)
def A048726(n): return (n^ n<<1)<<1 # Chai Wah Wu, Jun 29 2022
CROSSREFS
Sequence in context: A366144 A272305 A114797 * A092461 A102809 A060479
KEYWORD
nonn,easy
AUTHOR
Antti Karttunen, Apr 26 1999
STATUS
approved