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!)
A115421 Numbers having a 1 in position 5 of their binary expansion. 6

%I #21 Mar 29 2024 02:23:17

%S 32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,

%T 55,56,57,58,59,60,61,62,63,96,97,98,99,100,101,102,103,104,105,106,

%U 107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124

%N Numbers having a 1 in position 5 of their binary expansion.

%C One of the mystery calculator sequences: A005408, A042964, A047566, A115419, A115420, A115421.

%H Robert Israel, <a href="/A115421/b115421.txt">Table of n, a(n) for n = 1..10000</a>

%H Edd Mann, <a href="https://eddmann.com/mystery-calculator-clojurescript/">Mystery Calculator</a>.

%F From _Robert Israel_, Nov 14 2016: (Start)

%F a(n + 32) = a(n) + 64.

%F O.g.f.: (31 + (1 - x^33)/(1 - x))*x/((1 - x)*(1 - x^32)). (End)

%e a(1) = 32 = 100000 in binary.

%p a:= n-> n+31 + 32*iquo(n-1, 32):

%p seq(a(n), n=1..100); # _Alois P. Heinz_, Aug 22 2011

%t Select[Range[256], BitAnd[#, 32] == 32 &] (* _Alonso del Arte_, Nov 14 2016 *)

%o (Python)

%o def A115421(n): return ((n-1<<1)&-31|32)+(n-1&31) # _Chai Wah Wu_, Mar 28 2024

%Y Cf. A005408, A042964, A047566, A115419, A115420.

%K nonn,base,easy

%O 1,1

%A _Jeremy Gardiner_, Jan 22 2006

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 19 13:40 EDT 2024. Contains 371792 sequences. (Running on oeis4.)