# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a326024 Showing 1-1 of 1 %I A326024 #14 Apr 10 2021 15:07:42 %S A326024 1,2,3,5,9,15,25,41,68,109,179,284,443,681,1062,1587,2440,3638,5443, %T A326024 8021,11953,17273,25578,37001,53953,77429,113063,160636,232928,330775, %U A326024 475380,672056,967831,1359743,1952235,2743363,3918401,5495993,7856134,10984547,15669741 %N A326024 Number of subsets of {1..n} containing no sums or products of distinct elements. %H A326024 Fausto A. C. Cariboni, Table of n, a(n) for n = 0..80 %e A326024 The a(0) = 1 through a(5) = 15 subsets: %e A326024 {} {} {} {} {} {} %e A326024 {1} {1} {1} {1} {1} %e A326024 {2} {2} {2} {2} %e A326024 {3} {3} {3} %e A326024 {2,3} {4} {4} %e A326024 {2,3} {5} %e A326024 {2,4} {2,3} %e A326024 {3,4} {2,4} %e A326024 {2,3,4} {2,5} %e A326024 {3,4} %e A326024 {3,5} %e A326024 {4,5} %e A326024 {2,3,4} %e A326024 {2,4,5} %e A326024 {3,4,5} %t A326024 Table[Length[Select[Subsets[Range[n]],Intersection[#,Union[Plus@@@Subsets[#,{2,n}],Times@@@Subsets[#,{2,n}]]]=={}&]],{n,0,10}] %o A326024 (PARI) %o A326024 a(n)={ %o A326024 my(recurse(k, es, ep)= %o A326024 if(k > n, 1, %o A326024 my(t = self()(k + 1, es, ep)); %o A326024 if(!bittest(es,k) && !bittest(ep,k), %o A326024 es = bitor(es, bitand((2<