Smallest m such that 0!+1!+...+(m-1)! is divisible by n, or 0 if no such m exists.

A013584

Smallest m such that 0!+1!+...+(m-1)! is divisible by n, or 0 if no such m exists.

Terms

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

External references