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.

A359446 a(n) is the period of the decimal expansion of 1/A243110(n).

This page as a plain text file.
%I A359446 #23 Feb 26 2023 20:34:03
%S A359446 1,2,3,4,7,5,21,29,20,22,7,10,11,18,35,51,45,61,9,11,14,17,15,16,21,
%T A359446 47,51,54,55,24,28,37,13,44,44,26,17
%N A359446 a(n) is the period of the decimal expansion of 1/A243110(n).
%C A359446 Equivalently, a(n) is the period of the decimal expansion of the reciprocals of the corresponding primes in the records of A060370, that is, of the primes that set a record for the ratio between them and the period of its reciprocal.
%e A359446 a(5) = 7 because the 5th term of A243110 is 239 and 1/239 = 0.0041841... which has a period of 7.
%o A359446 (Python)
%o A359446 from sympy import n_order, nextprime
%o A359446 p = 3
%o A359446 best = 0
%o A359446 while True:
%o A359446     if p!=5:
%o A359446         period = n_order(10,p)
%o A359446         k = (p-1)//period
%o A359446         if k > best:
%o A359446             best = k
%o A359446             print(period, end=',')
%o A359446     p = nextprime(p)
%Y A359446 Cf. A060370, A243110.
%K A359446 nonn,base,more
%O A359446 1,2
%A A359446 _Pedro K. Krause_, Jan 01 2023