OFFSET
2,1
COMMENTS
The prime-th digits of Phi.
Is the number 6.10379885357398... irrational, transcendental?
EXAMPLE
The 5th prime is 11. The 11th digit of Phi is 7, the 5th term in the sequence.
MATHEMATICA
With[{nn=600}, Pick[RealDigits[GoldenRatio, 10, nn][[1]], If[PrimeQ[#], 1, 0]&/@Range[nn], 1]] (* Harvey P. Dale, Apr 22 2012 *)
Module[{nn=110, gr}, gr=RealDigits[GoldenRatio, 10, Prime[nn]][[1]]; Table[gr[[p]], {p, Prime[ Range[nn]]}]] (* Harvey P. Dale, Dec 07 2022 *)
PROG
(PARI) \primeth.gp primeth(n) = { default(realprecision, 1000); p=Str((sqrt(5)+1)/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) }
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Cino Hilliard, Jan 22 2004
STATUS
approved
