login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A090204 a(n) = p-th digit of sqrt(2) where p = n-th prime. 0

%I #3 Oct 01 2013 17:57:56

%S 4,1,2,3,3,3,0,8,6,2,9,8,6,1,3,0,6,9,0,4,8,7,8,5,1,7,5,8,6,9,6,8,2,2,

%T 0,9,1,2,9,5,7,9,7,2,5,1,1,4,8,2,7,4,8,6,3,4,7,4,0,7,2,2,3,5,6,8,5,2,

%U 7,0,7,7,5,7,7,3,6,8,1,9,8,5,7,0,4,8,4,8,5,0,4,7,5,5,7,2,2,7,5,6,2,5,4,7,6

%N a(n) = p-th digit of sqrt(2) where p = n-th prime.

%C The prime-th digits of sqrt(2).

%C Are the numbers in this sequence uniformly distributed? Could this sequence and A090201-A090203 be used as a random number generators?

%e The 5th prime is 11. The 11th digit of sqrt(2) is 3, the 5th term in the sequence.

%o (PARI) \primeth.gp primeth(n) = { default(realprecision,1000); p=Str(sqrt(2)*10^999); default(realprecision,28); forprime(x=2,n, print1(mid(p,x,1)",") ) } mid(str,s,n) = { v =""; tmp = Vec(str); ln=length(tmp); for(x=s,s+n-1, v=concat(v,tmp[x]); ); return(v) }

%K base,easy,nonn

%O 2,1

%A _Cino Hilliard_, Jan 22 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 6 02:22 EDT 2024. Contains 372290 sequences. (Running on oeis4.)