login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A048728
Differences between A008585 (multiples of 3) and A048724.
8
0, 0, 0, 4, 0, 0, 8, 12, 0, 0, 0, 4, 16, 16, 24, 28, 0, 0, 0, 4, 0, 0, 8, 12, 32, 32, 32, 36, 48, 48, 56, 60, 0, 0, 0, 4, 0, 0, 8, 12, 0, 0, 0, 4, 16, 16, 24, 28, 64, 64, 64, 68, 64, 64, 72, 76, 96, 96, 96, 100, 112, 112, 120
OFFSET
0,4
LINKS
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
Positions of zeros are given by A003714. Cf. A048735, A242400.
Diagonal 3 of A061858.
Sequence in context: A055028 A330316 A028591 * A002915 A127733 A330379
KEYWORD
nonn,easy
AUTHOR
Antti Karttunen, Apr 26 1999
STATUS
approved