OFFSET
0,4
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = n*3 - Xmult(n, 3).
PROG
(Haskell)
a048728 n = a008585 n - a048724 n -- Reinhard Zumkeller, May 13 2014
(PARI) a(n)=3*n - bitxor(2*n, n) \\ Charles R Greathouse IV, Oct 03 2016
(Python)
def a(n): return 3*n - (2*n^n) # Indranil Ghosh, Jun 13 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Antti Karttunen, Apr 26 1999
STATUS
approved