OFFSET
1,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
EXAMPLE
The binary expansion of sqrt(2) is 1.0110101000001..(A004539) and binary(10)=1010 occurs first at index 4, so a(10)=4.
MATHEMATICA
With[{s2=RealDigits[Sqrt[2], 2, 1000][[1]], n2=IntegerDigits[n, 2]}, Flatten[ Table[First[ Position[Partition[s2, Length[n2], 1], n2]], {n, 70}]]] (* Harvey P. Dale, Oct 11 2012 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Ralf Stephan, May 18 2003
STATUS
approved