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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A067247 Number of difference sets of subsets of {1,2,...,n}, i.e., the size of {D(A) : A subset [n] }, where D(A)={a_i-a_j : a_i>a_j and a_i,a_j in A}. 0
 1, 2, 4, 6, 10, 16, 25, 39, 63, 99, 158, 253, 402, 639, 1021, 1633, 2617, 4153, 6633, 10460, 16598, 26146, 41409, 64733, 102006, 159165, 249698, 387515, 604769, 933531, 1451882, 2232319, 3451823 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS 2^(floor(n/2)) <= a(n) <= 2^n. LINKS Table of n, a(n) for n=1..33. EXAMPLE a(4)=6 because {1}, {1,2}, {1,3}, {1,4}, {1,2,3} and {1,2,4} have difference sets {}, {1}, {2}, {3}, {1,2}, {1,2,3}, respectively and all 2^4 subsets of {1,2,3,4} have one of these difference sets. MATHEMATICA SetToNumber = Compile[{{A, _Integer, 1}, {LP, _Integer}}, Plus @@ (2^Union[Flatten[Table[If[i > j, A[[i]] - A[[j]], 0], {j, LP}, {i, LP}]]])]; GetSetA = Compile[{{n, _Integer}}, Flatten[Position[IntegerDigits[n, 2], 1]]]; DS[n_] := Module[{LP, A}, A = GetSetA[n]; LP = Length[A]; SetToNumber[A, LP]]; newfset[d_] := Union[Table[DS[n], {n, 2^(d - 1) + 1, 2^d - 1, 2}]]; newf[d_] := newf[d] = Length[newfset[d]]; a[2] = 2; a[d_] := a[d] = newf[d] + a[d - 1]; CROSSREFS Sequence in context: A305498 A028445 A006305 * A017985 A327474 A347207 Adjacent sequences: A067244 A067245 A067246 * A067248 A067249 A067250 KEYWORD nonn,more AUTHOR Kevin O'Bryant, Mar 10 2002 EXTENSIONS a(27)-a(33) from Sean A. Irvine, Dec 10 2023 STATUS approved

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.

Last modified June 20 23:53 EDT 2024. Contains 373535 sequences. (Running on oeis4.)
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0}