OFFSET
1,2
EXAMPLE
The continued fraction for S(5) = 1 + 1/16 + 1/20976 + 1/50649 + 1/51933 is [1, 15, 1, 44, 7, 1, 1, 1, 1, 3, 2, 2, 3, 1, 6, 3, 1, 625, 2, 4] where the largest element is 625 = 5^4 and 51933 is the smallest integer > 50649 with this property.
PROG
(PARI) s=1; t=1; for(n=2, 17, s=s+1/t; while(abs(n^4-vecmax(contfrac(s+1/t)))>0, t++); print1(t, ", "))
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Benoit Cloitre, May 19 2002
EXTENSIONS
a(11)-a(16) from Ryan Propper, Aug 06 2005
a(17) from Jinyuan Wang, Apr 05 2020
STATUS
approved