OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
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
KEYWORD
nonn,easy,base
AUTHOR
Firdous Ahmad Mala, Apr 29 2022
EXTENSIONS
More terms from Felix Fröhlich, Apr 29 2022
STATUS
approved