login
This site is supported by donations 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

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

Positions of zeros are given by A003714. Cf. A048735, A242400.

Diagonal 3 of A061858.

Sequence in context: A016678 A055028 A028591 * A002915 A127733 A249035

Adjacent sequences:  A048725 A048726 A048727 * A048729 A048730 A048731

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 | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified February 25 14:46 EST 2018. Contains 299654 sequences. (Running on oeis4.)