Least number k < n and coprime to n such that the largest term of the continued fraction of k/n is as small as possible.

A141821

Least number k < n and coprime to n such that the largest term of the continued fraction of k/n is as small as possible.

Terms

    a(0) =1a(1) =2a(2) =3a(3) =2a(4) =5a(5) =5a(6) =3a(7) =7a(8) =3a(9) =8a(10) =5a(11) =5a(12) =11a(13) =4a(14) =7a(15) =12a(16) =13a(17) =7a(18) =9a(19) =8a(20) =17a(21) =7a(22) =7a(23) =7a(24) =19a(25) =19a(26) =23a(27) =12a(28) =11a(29) =12

External references