login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 27 20:19 EDT 2024. Contains 372020 sequences. (Running on oeis4.)