A341442 a(n) is the position of the start of the first occurrence of prime(n) after the decimal point in the expansion of e.
4, 17, 11, 1, 200, 27, 88, 108, 16, 131, 189, 270, 124, 134, 25, 18, 11, 242, 59, 1, 157, 168, 205, 221, 35, 195, 941, 283, 1748, 355, 370, 4604, 1574, 1998, 223, 413, 201, 483, 232, 599, 2875, 120, 1382, 108, 607, 1067, 426, 2494, 1329, 517, 178, 574, 2133
Offset: 1
Examples
The first position at which prime(1)=2 occurs to the right of the decimal point in e=2.71828... is the 4th digit after the decimal point, so a(1)=4.
Programs
-
Mathematica
en=Characters[ToString@N[E,10000]]; For[x=1,x<=100,x++,Print["x=",x," ",prn=Prime[x]," ",pos=First[SequencePosition[en,Characters[ToString[prn]]]-2]]]
Formula
a(n) = A078197(prime(n)). - Rémy Sigrist, Feb 12 2021