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

A075016

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

Terms

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

External references