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

%I #18 Jun 14 2017 07:14:51

%S 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,

%T 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,

%U 76,96,96,96,100,112,112,120

%N Differences between A008585 (multiples of 3) and A048724.

%H Reinhard Zumkeller, <a href="/A048728/b048728.txt">Table of n, a(n) for n = 0..10000</a>

%F a(n) = n*3 - Xmult(n, 3).

%o (Haskell)

%o a048728 n = a008585 n - a048724 n -- _Reinhard Zumkeller_, May 13 2014

%o (PARI) a(n)=3*n - bitxor(2*n, n) \\ _Charles R Greathouse IV_, Oct 03 2016

%o (Python)

%o def a(n): return 3*n - (2*n^n) # _Indranil Ghosh_, Jun 13 2017

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

%Y Diagonal 3 of A061858.

%K nonn,easy

%O 0,4

%A _Antti Karttunen_, Apr 26 1999

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 May 11 07:10 EDT 2024. Contains 372388 sequences. (Running on oeis4.)