A180489 Smallest pandigital number (A171102) divisible by the n-th prime A000040(n).
1023456798, 1023456789, 1023467895, 1023456798, 1024375869, 1023456798, 1023457698, 1023458769, 1023475689, 1023468957, 1023458769, 1023654987, 1023458769, 1023469875, 1023467958, 1023459786, 1023457896, 1023458976
Offset: 1
Examples
a(1) is the smallest pandigital number divisible by prime(1) = 2, which is 1023456798. - _David J. Seal_, Sep 18 2017
Links
- Ray Chandler, Table of n, a(n) for n=1..10000
Programs
-
Mathematica
With[{s = Select[FromDigits@ # & /@ Permutations[Range[0, 9], {10}], # > 10^9 &]}, Table[SelectFirst[s, Divisible[#, Prime@ n] &], {n, 18}]] (* Michael De Vlieger, Sep 18 2017, after Robert G. Wilson v at A171102 *)
Comments