login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A333083 Number of permutations sigma of [n] such that all values k * sigma(k) for 1 <= k <= n are pairwise distinct. 3

%I #28 Mar 09 2020 13:01:50

%S 1,1,1,3,13,67,305,2359,16495,141643,1273691,15580299,152788607,

%T 2206382433,28916044241,399450183613

%N Number of permutations sigma of [n] such that all values k * sigma(k) for 1 <= k <= n are pairwise distinct.

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Permutation">Permutation</a>

%e In the n=3 case:

%e | sigma(1),sigma(2),sigma(3)

%e ----+---------------------------

%e 1 | [1, 2, 3]

%e 2 | [2, 3, 1]

%e 3 | [3, 1, 2]

%t Table[ Count[ Length@ Union[# Range@ n] & /@ Permutations@ Range@ n, n], {n, 0, 9}] (* _Giovanni Resta_, Mar 09 2020 *)

%o (Ruby)

%o def A(n)

%o (1..n).to_a.permutation.select{|i| (1..n).map{|j| i[j - 1] * j}.uniq.size == n}.size

%o end

%o def A333083(n)

%o (0..n).map{|i| A(i)}

%o end

%o p A333083(9)

%o (PARI) a(n) = {my(nb=0); forperm([1..n], p, if (#Set(vector(n, k, k*p[k])) == n, nb++);); nb;} \\ _Michel Marcus_, Mar 09 2020

%Y Cf. A333082.

%K nonn,more

%O 0,4

%A _Seiichi Manyama_, Mar 07 2020

%E a(13)-a(15) from _Giovanni Resta_, Mar 09 2020

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 29 19:56 EDT 2024. Contains 375518 sequences. (Running on oeis4.)