Quantcast
Channel: Active questions tagged string-manipulation - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 188

Finding a subset in the set of the digits of Pi

$
0
0

Well, I want to find the first position where the digits of Pi are {a,b,c,...,z}. So to find the first n digits of Pi and put them in listform I used:

IntegerDigits[Last[FoldList[FromDigits[{##}]&]@First@RealDigits@FractionalPart@N[Pi,n]]]

Now, I am stuck. How do find the positions where {a,b,c,...,z} occurs?


So as an example, when does {7,9,3} do appear for the first time in the digits of Pi? I know that it is at the 13th digit of Pi (checked by hand).


Viewing all articles
Browse latest Browse all 188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>