A378865 a(n) is the smallest positive integer k such that n*k uses none of the digits of n, or 0 if no such k exists.
2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 3, 2, 2, 2, 2, 2, 2, 2, 0, 3, 2, 2, 4, 4, 3, 2, 2, 2, 0, 2, 2, 2, 2, 2, 2, 3, 2, 2, 0, 2, 4, 2, 2, 2, 2, 4, 2, 12, 0, 4, 2, 2, 2, 2, 2, 2, 2, 2, 0, 4, 5, 3, 2, 2, 2, 2, 3, 2, 0, 4, 2, 2, 3, 4, 2, 2, 2, 2, 0, 3, 2, 2, 3
Offset: 1
Examples
a(12) = 3, since 12*1 = 12, 12*2 = 24 have digits in common with 12, while 12*3 = 36 does not.
Links
- Dominic McCarty, Table of n, a(n) for n = 1..1000 (synthesized from _Michel Marcus_'s data at A074157)
Formula
a(n) = A074157(n)/n.
Comments