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”).

a(n) = n OR 4n, where OR is bitwise OR.
8

%I #6 Aug 02 2015 12:52:09

%S 0,5,10,15,20,21,30,31,40,45,42,47,60,61,62,63,80,85,90,95,84,85,94,

%T 95,120,125,122,127,124,125,126,127,160,165,170,175,180,181,190,191,

%U 168,173,170,175,188,189,190,191,240,245,250,255,244,245,254,255,248,253

%N a(n) = n OR 4n, where OR is bitwise OR.

%C Perhaps this is a rearrangement of A115772?

%p read("transforms") ; for n from 0 to 120 do printf("%d,", ORnos(n,4*n) ) ; end do: # _R. J. Mathar_, Jun 26 2010

%t f[n_] := BitOr[n, 4n]; Array[f, 58, 0] (* _Robert G. Wilson v_, Jun 28 2010 *)

%Y Cf. A163617, A178890, A178892, A178893, A178894, A178895, A178896, A178897.

%K nonn

%O 0,2

%A _Dmitry Kamenetsky_, Jun 21 2010

%E More terms from _R. J. Mathar_ and _Robert G. Wilson v_, Jun 26 2010