cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A353179 a(n) is the first nonzero digit in the decimal expansion of 1/prime(n).

This page as a plain text file.
%I A353179 #33 Aug 25 2024 13:59:46
%S A353179 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 A353179 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 A353179 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
%N A353179 a(n) is the first nonzero digit in the decimal expansion of 1/prime(n).
%H A353179 Harvey P. Dale, <a href="/A353179/b353179.txt">Table of n, a(n) for n = 1..1000</a>
%F A353179 a(n) = A052038(prime(n)).
%p A353179 a:= n-> (p-> floor(10^length(p)/p))(ithprime(n)):
%p A353179 seq(a(n), n=1..100);  # _Alois P. Heinz_, Apr 30 2022
%t A353179 Table[RealDigits[1/Prime[n],10,1][[1]],{n,100}]//Flatten (* _Harvey P. Dale_, Aug 25 2024 *)
%o A353179 (PARI) a(n) = my(p=prime(n)); floor(10^(1+logint(p-1, 10))/p) \\ _Felix Fröhlich_, Apr 29 2022
%Y A353179 Cf. A052038, A000040.
%K A353179 nonn,easy,base
%O A353179 1,1
%A A353179 _Firdous Ahmad Mala_, Apr 29 2022
%E A353179 More terms from _Felix Fröhlich_, Apr 29 2022