OFFSET
0,4
FORMULA
a(n) = ((n*7)-Xmult(n, 7))/4.
PROG
(PARI) a(n)=(7*n - bitxor(n, bitxor(2*n, 4*n)))/4 \\ Charles R Greathouse IV, Oct 03 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Antti Karttunen
STATUS
approved