OFFSET
1,1
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
EXAMPLE
Golden ratio phi = 1.6180339887498948482045868343656381177... (see A001622).
First occurrence of prime(1) = 2 is at the 19th digit after the decimal point, hence a(1) = 19.
First occurrence of prime(5) = 11 starts at the 34th digit after the decimal point, hence a(5) = 34.
MATHEMATICA
Module[{p = Rest[First[RealDigits[GoldenRatio, 10, 10^4]]], n = 0, a}, Reap[While[(a = SequencePosition[p, IntegerDigits[Prime[++n]], 1]) != {}, Sow[a[[1, 1]]]]][[2, 1]]] (* Paolo Xausa, Aug 01 2024 *)
PROG
(Magma) k:=3000; R := RealField(k); [ Position(IntegerToString(Round(10^k*(-1 + (Sqrt(elt<R | 5, 0>)+1) / elt<R | 2, 0>))), IntegerToString(NthPrime(n))) : n in [1..55] ]; /* Klaus Brockhaus, Feb 15 2007 */
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Gregory Allen, Feb 13 2007
EXTENSIONS
Edited, corrected and extended by Klaus Brockhaus, Feb 15 2007
STATUS
approved