OFFSET
1,1
COMMENTS
a(n) is the denominator of the generating rational of n+1 (see comments and numerators in A323184).
If n+1 is prime, a(n) is n+1.
LINKS
Chris Boyd, Table of n, a(n) for n = 1..10000
Chris Boyd, Table of n, a(n) for n = 1..10000
EXAMPLE
a(27) = 37 because 15/37 = [0; 2, 2, 7] and 2*2*7 = 28.
a(28) = 29 because 1/29 = [0; 29] = 29.
PROG
(PARI) vectorise_factors(m)={v=[0]; F=factor(m); for(i=1, matsize(F)[1], for(j=1, F[i, 2], v=concat(v, F[i, 1]))); }
A323185(n)={vectorise_factors(n+1); contfracpnqn(v)[2, 1]; }
for(k=1, 75, print1(A323185(k)", ")) \\ Chris Boyd, Jan 06 2019
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Chris Boyd, Jan 06 2019
STATUS
proposed