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

%I #23 Feb 26 2023 20:34:03

%S 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 47,51,54,55,24,28,37,13,44,44,26,17

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

%C 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 a(5) = 7 because the 5th term of A243110 is 239 and 1/239 = 0.0041841... which has a period of 7.

%o (Python)

%o from sympy import n_order, nextprime

%o p = 3

%o best = 0

%o while True:

%o if p!=5:

%o period = n_order(10,p)

%o k = (p-1)//period

%o if k > best:

%o best = k

%o print(period, end=',')

%o p = nextprime(p)

%Y Cf. A060370, A243110.

%K nonn,base,more

%O 1,2

%A _Pedro K. Krause_, Jan 01 2023