A178476 Permutations of 123456: Numbers having each of the decimal digits 1,...,6 exactly once, and no other digit.
123456, 123465, 123546, 123564, 123645, 123654, 124356, 124365, 124536, 124563, 124635, 124653, 125346, 125364, 125436, 125463, 125634, 125643, 126345, 126354, 126435, 126453, 126534, 126543, 132456, 132465, 132546, 132564, 132645, 132654
Offset: 1
Links
- Nathaniel Johnston, Table of n, a(n) for n = 1..720 (full sequence)
Programs
-
Mathematica
Take[FromDigits/@Permutations[Range[6]],40] (* Harvey P. Dale, Jun 05 2012 *)
-
PARI
v=vector(6,i,10^(i-1))~; A178476=vecsort(vector(6!,i,numtoperm(6,i)*v)); is_A178476(x)= { vecsort(Vec(Str(x)))==Vec("123456") } forstep( m=123456,654321,9, is_A178476(m) & print1(m","))
Comments