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!)
A196721 Number of subsets of {1..n} (including empty set) such that the pairwise LCMs of elements are all distinct. 6

%I #17 Oct 18 2020 05:50:36

%S 1,2,4,8,14,28,42,84,132,236,352,704,920,1840,2736,3816,5700,11400,

%T 15384,30768,39552,54656,81672,163344,196176,362656,542304,930352,

%U 1195168,2390336,2914304,5828608,8513920,11674848,17490432,23484224,28058816,56117632,84100800

%N Number of subsets of {1..n} (including empty set) such that the pairwise LCMs of elements are all distinct.

%H Fausto A. C. Cariboni, <a href="/A196721/b196721.txt">Table of n, a(n) for n = 0..50</a>

%e a(4) = 14: {}, {1}, {2}, {3}, {4}, {1,2}, {1,3}, {1,4}, {2,3}, {2,4}, {3,4}, {1,2,3}, {1,3,4}, {2,3,4}.

%p b:= proc(n, s) local sn, m;

%p m:= nops(s);

%p sn:= [s[], n];

%p `if`(n<1, 1, b(n-1, s) +`if`(m*(m+1)/2 = nops(({seq(seq(

%p ilcm(sn[i], sn[j]), j=i+1..m+1), i=1..m)})), b(n-1, sn), 0))

%p end:

%p a:= proc(n) option remember;

%p b(n-1, [n]) +`if`(n=0, 0, a(n-1))

%p end:

%p seq(a(n), n=0..10);

%t b[n_, s_] := b[n, s] = Module[{sn, m}, m = Length[s]; sn = Append[s, n]; If[n < 1, 1, b[n - 1, s] + If[m*(m + 1)/2 == Length @ Union @ Flatten @ Table[LCM [sn[[i]], sn[[j]]], {i, 1, m}, {j, i+1, m+1}], b[n-1, sn], 0]]]; a[n_] := a[n] = b[n-1, {n}] + If[n == 0, 0, a[n-1]]; Table[ Print["a(", n, ") = ", a[n]]; a[n], {n, 0, 30}] (* _Jean-François Alcover_, Feb 02 2017, translated from Maple *)

%Y Cf. A143823, A196719, A196720, A196722, A196723, A196724.

%K nonn

%O 0,2

%A _Alois P. Heinz_, Oct 05 2011

%E Terms a(31) and beyond from _Fausto A. C. Cariboni_, Oct 18 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 12 10:56 EDT 2024. Contains 375092 sequences. (Running on oeis4.)