A078240 a(n) = smallest multiple of n using only composite digits (0,4,6,8,9).
4, 4, 6, 4, 40, 6, 49, 8, 9, 40, 44, 48, 468, 84, 60, 48, 68, 90, 494, 40, 84, 44, 46, 48, 400, 468, 486, 84, 406, 60, 496, 64, 66, 68, 490, 468, 444, 494, 468, 40, 984, 84, 86, 44, 90, 46, 94, 48, 49, 400, 408, 468, 689, 486, 440, 448, 684, 406, 649, 60
Offset: 1
Links
- Andrew Howroyd, Table of n, a(n) for n = 1..10000
Programs
-
PARI
a(n)={my(S=Set([1,2,3,5,7])); forstep(m=n, oo, n, my(d=digits(m)); if(#select(t->setsearch(S,t), d)==0, return(m)))} \\ Andrew Howroyd, Sep 17 2024
Extensions
Corrected and extended by Andrew Howroyd, Sep 17 2024
Comments