OFFSET
0,1
EXAMPLE
1/e = 0.367879441171442321595523770161460867445811131031767834507... = 0.010111100010110101011000110110001011001110111100110111110001101010111010110111 in binary.
From the binary expansion we get 10 = 2, 1010 = 10, 11010 = 26, 111010 = 58, 1111010 = 122, etc.
MATHEMATICA
d = 100; l = First[RealDigits[N[1/E, d], 2]]; Do[m = Take[l, n]; k = Length[m]; If[m[[k]] == 1, Print[2*FromDigits[Reverse[m], 2]]], {n, 1, d}] (* Ryan Propper, Aug 18 2005 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Nov 13, 2004, based on correspondence from Artur Jasinski, Mar 25 2003
EXTENSIONS
More terms from Ryan Propper, Aug 18 2005
STATUS
approved