Let {b(m)} be Recamán's sequence A005132, with the additional term b(-1):=0. Define a(n) to be the first index m where b(m-1)-m = -n, or -1 if b(m-1)-m never equals -n.

A375118

Let {b(m)} be Recamán's sequence A005132, with the additional term b(-1):=0. Define a(n) to be the first index m where b(m-1)-m = -n, or -1 if b(m-1)-m never equals -n.

Terms

    a(0) =0a(1) =1a(2) =181695a(3) =5a(4) =1523a(5) =137a(6) =15a(7) =1525a(8) =139a(9) =17a(10) =1527a(11) =141a(12) =28a(13) =1529a(14) =143a(15) =30a(16) =1531a(17) =145a(18) =32a(19) =1533a(20) =147a(21) =53a(22) =1535a(23) =149a(24) =55a(25) =1537a(26) =151a(27) =57a(28) =1539a(29) =153

External references