login
A140501
Ten-digit numbers with all distinct digits such that the string formed by the last k digits is divisible by k for any k <= 10.
5
9123567480, 9123675840, 9123756480, 9126573840, 9132576840, 9132657480, 9132765840, 9135648720, 9135726840, 9138546720, 9138675240, 9147528360, 9153276840, 9153672480, 9153768240, 9156237840, 9156348720, 9162573480
OFFSET
1,1
LINKS
Tanya Khovanova, Jun 29 2008, Table of n, a(n) for n = 1..202 (full sequence)
EXAMPLE
9123567480 is in this sequence, because 80/2 = 40, 480/3 = 160, 7480/4 = 1870, 67480/5 = 13496, 567480/6 = 94580, 3567480/7 = 509640, 23567480/8 = 2945935, 123567480/9 = 13729720, 9123567480/10 = 912356748.
MATHEMATICA
Map[FromDigits, Select[Permutations[{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}], #[[1]] == 9 && Mod[FromDigits[{#[[8]], #[[9]], #[[10]]}], 120] == 0 && Mod[ #[[5]] + #[[6]] + #[[7]], 3] == 0 && Mod[FromDigits[Take[ #, -7]], 7] == 0 &]]
CROSSREFS
Sequence in context: A346364 A015398 A034614 * A216014 A375862 A178558
KEYWORD
fini,full,nonn,base
AUTHOR
Tanya Khovanova, Jun 29 2008
EXTENSIONS
Edited by Charles R Greathouse IV, Aug 02 2010
STATUS
approved