OFFSET
0,4
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..8191
Michael De Vlieger, Log log scatterplot of a(n), n = 0..2^20.
FORMULA
a(n) = ((n*7)-Xmult(n, 7))/4.
MATHEMATICA
A048733[n_] := (7*n - BitXor[n, 2*n, 4*n])/4;
Array[A048733, 100, 0] (* Paolo Xausa, Aug 06 2025 *)
PROG
(PARI) a(n)=(7*n - bitxor(n, bitxor(2*n, 4*n)))/4 \\ Charles R Greathouse IV, Oct 03 2016
CROSSREFS
KEYWORD
AUTHOR
Antti Karttunen
STATUS
approved
