Smallest k such that the concatenation k, k-1 is divisible by n; or 0 if no such number exists.

A075014

Smallest k such that the concatenation k, k-1 is divisible by n; or 0 if no such number exists.

Terms

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

External references