|
|
A353179
|
|
a(n) is the first nonzero digit in the decimal expansion of 1/prime(n).
|
|
0
|
|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
MAPLE
|
a:= n-> (p-> floor(10^length(p)/p))(ithprime(n)):
|
|
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,changed
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|