a(1) = 1; thereafter, a(n) is the smallest nonnegative number such that the number Sum_{i=1..n} a(i)*10^(n-i) is divisible by n.
A082399
a(1) = 1; thereafter, a(n) is the smallest nonnegative number such that the number Sum_{i=1..n} a(i)*10^(n-i) is divisible by n.
Terms
- a(0) =1a(1) =0a(2) =2a(3) =0a(4) =0a(5) =0a(6) =5a(7) =6a(8) =4a(9) =0a(10) =5a(11) =10a(12) =2a(13) =2a(14) =5a(15) =6a(16) =16a(17) =8a(18) =14a(19) =0a(20) =7a(21) =18a(22) =19a(23) =2a(24) =5a(25) =10a(26) =6a(27) =0a(28) =25a(29) =20
External references
- oeis: A082399