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!)
A364752 Number of subsets of {1..n} containing n and all first differences. 4
1, 1, 2, 2, 4, 4, 9, 11, 24, 38, 75, 131, 263, 476, 928, 1750, 3386, 6439, 12455, 23853, 46097, 88709, 171471, 330939, 640472, 1238755, 2400154, 4650857, 9022792, 17510820, 34015138, 66106492, 128571563, 250191929, 487175381, 949133736, 1850223956, 3608650389 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
Rémy Sigrist, C++ program
EXAMPLE
The a(1) = 1 through a(6) = 9 subsets:
{1} {2} {3} {4} {5} {6}
{1,2} {1,2,3} {2,4} {1,2,3,5} {3,6}
{1,2,4} {1,2,4,5} {2,4,6}
{1,2,3,4} {1,2,3,4,5} {1,2,3,6}
{1,2,4,6}
{1,2,3,4,6}
{1,2,3,5,6}
{1,2,4,5,6}
{1,2,3,4,5,6}
MATHEMATICA
Table[If[n==0, 1, Length[Select[Subsets[Range[n]], MemberQ[#, n]&&SubsetQ[#, Differences[#]]&]]], {n, 0, 10}]
CROSSREFS
Partial sums are A364671, complement A364672.
The complement is counted by A364753.
A054519 counts subsets containing differences, A326083 containing sums.
A364463 counts subsets disjoint from differences, complement A364466.
A364673 counts partitions containing differences, A364674, A364675.
Sequence in context: A358429 A222736 A053656 * A035054 A099537 A109525
KEYWORD
nonn
AUTHOR
Gus Wiseman, Aug 06 2023
EXTENSIONS
More terms from Rémy Sigrist, Aug 06 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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 25 12:54 EDT 2024. Contains 375439 sequences. (Running on oeis4.)