login

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”).

A353179
a(n) is the first nonzero digit in the decimal expansion of 1/prime(n).
1
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, 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
OFFSET
1,1
LINKS
FORMULA
a(n) = A052038(prime(n)).
MAPLE
a:= n-> (p-> floor(10^length(p)/p))(ithprime(n)):
seq(a(n), n=1..100); # Alois P. Heinz, Apr 30 2022
MATHEMATICA
Table[RealDigits[1/Prime[n], 10, 1][[1]], {n, 100}]//Flatten (* Harvey P. Dale, Aug 25 2024 *)
PROG
(PARI) a(n) = my(p=prime(n)); floor(10^(1+logint(p-1, 10))/p) \\ Felix Fröhlich, Apr 29 2022
CROSSREFS
Sequence in context: A350041 A317674 A201333 * A088324 A352153 A052038
KEYWORD
nonn,easy,base
AUTHOR
Firdous Ahmad Mala, Apr 29 2022
EXTENSIONS
More terms from Felix Fröhlich, Apr 29 2022
STATUS
approved