Let f be defined on the rationals by f(p/q) =(p+1)/(q+1)=p_{1}/q_{1} where (p_{1},q_{1})=1. Let f^k(p/q)=p_{k}/q_{k} where (p_{k},q_{k})=1. Sequence gives least k such that p_{k}-q_{k} = 1 starting at n.

A087656

Let f be defined on the rationals by f(p/q) =(p+1)/(q+1)=p_{1}/q_{1} where (p_{1},q_{1})=1. Let f^k(p/q)=p_{k}/q_{k} where (p_{k},q_{k})=1. Sequence gives least k such that p_{k}-q_{k} = 1 starting at n.

Terms

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

External references