# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a004711 Showing 1-1 of 1 %I A004711 #28 Jan 21 2020 15:03:26 %S A004711 1,2,5,8,13,14,15,16,17,18,20,21,23,25,27,31,35,40,42,43,45,49,50,55, %T A004711 59,60,62,65,66,70,73,74,78,79,82,83,87,89,93,95,96,97,105,106,108, %U A004711 109,110,116,117,118,121,122,124 %N A004711 Positions of 1's in binary expansion of Pi/4. %H A004711 T. D. Noe, Table of n, a(n) for n = 1..1000 %F A004711 a(n) = A256108(n) + 2. - _Lorenzo Sauras Altuzarra_, Jan 21 2020 %t A004711 Flatten[Position[RealDigits[Pi/4,2,150][[1]],1]] (* _Harvey P. Dale_, Jul 13 2015 *) %o A004711 (PARI) default(realprecision, 100); select(x->(x==1), binary(Pi/4)[2], 1) \\ _Michel Marcus_, Oct 11 2018 %Y A004711 Cf. A003881, A004601, A256108. %K A004711 nonn,base %O A004711 1,2 %A A004711 _Simon Plouffe_ # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE