Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #33 Aug 25 2024 13:59:46
%S 5,3,2,1,9,7,5,5,4,3,3,2,2,2,2,1,1,1,1,1,1,1,1,1,1,9,9,9,9,8,7,7,7,7,
%T 6,6,6,6,5,5,5,5,5,5,5,5,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,
%U 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
%N a(n) is the first nonzero digit in the decimal expansion of 1/prime(n).
%H Harvey P. Dale, <a href="/A353179/b353179.txt">Table of n, a(n) for n = 1..1000</a>
%F a(n) = A052038(prime(n)).
%p a:= n-> (p-> floor(10^length(p)/p))(ithprime(n)):
%p seq(a(n), n=1..100); # _Alois P. Heinz_, Apr 30 2022
%t Table[RealDigits[1/Prime[n],10,1][[1]],{n,100}]//Flatten (* _Harvey P. Dale_, Aug 25 2024 *)
%o (PARI) a(n) = my(p=prime(n)); floor(10^(1+logint(p-1, 10))/p) \\ _Felix Fröhlich_, Apr 29 2022
%Y Cf. A052038, A000040.
%K nonn,easy,base
%O 1,1
%A _Firdous Ahmad Mala_, Apr 29 2022
%E More terms from _Felix Fröhlich_, Apr 29 2022