A004711 Positions of 1's in binary expansion of Pi/4.
1, 2, 5, 8, 13, 14, 15, 16, 17, 18, 20, 21, 23, 25, 27, 31, 35, 40, 42, 43, 45, 49, 50, 55, 59, 60, 62, 65, 66, 70, 73, 74, 78, 79, 82, 83, 87, 89, 93, 95, 96, 97, 105, 106, 108, 109, 110, 116, 117, 118, 121, 122, 124
Offset: 1
Links
- T. D. Noe, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
Flatten[Position[RealDigits[Pi/4,2,150][[1]],1]] (* Harvey P. Dale, Jul 13 2015 *)
-
PARI
default(realprecision, 100); select(x->(x==1), binary(Pi/4)[2], 1) \\ Michel Marcus, Oct 11 2018
Formula
a(n) = A256108(n) + 2. - Lorenzo Sauras Altuzarra, Jan 21 2020
Comments