OFFSET
1,4
COMMENTS
Denominator of (A008578(n)/n).
From Enrique Navarrete, Mar 15 2025: (Start)
a(n+1) is the number of binary strings of length n with at most one 0 and either zero or at least two 1s. For example, for n=2, a(3)=1 since the string is 11; for n=3, a(4)=4 since the strings are 111, 011, 101, 110.
a(n+1) is also the number of ordered set partitions of an n-set into 2 sets such that the first set is empty or has one element and the second set is empty or has at least two elements. (End)
FORMULA
a(1) = a(2) = a(3) = 1, a(n) = n for n >= 4.
From Enrique Navarrete, Mar 15 2025: (Start)
G.f.: x*(1-x+3*x^3-2*x^4)/(1-x)^2.
E.g.f.: x*exp(x)-x^2/2-x^3/3. (End)
MATHEMATICA
Module[{nn=300, c, len}, c=Select[Range[nn], !CompositeQ[#]&]; len=Length[ c]; #[[1]]/#[[2]]&/@Thread[{c, Range[len]}]]//Denominator (* or *) Join[{1, 1, 1}, Range[ 4, 60]] (* Harvey P. Dale, Feb 08 2020 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jaroslav Krizek, Dec 11 2009
EXTENSIONS
Corrected by Jaroslav Krizek, Dec 16 2009
STATUS
approved
