The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A341704 a(n) = 20*binomial(n,6) + 2*binomial(n,3) + 1. 2
1, 1, 1, 3, 9, 21, 61, 211, 673, 1849, 4441, 9571, 18921, 34893, 60789, 101011, 161281, 248881, 372913, 544579, 777481, 1087941, 1495341, 2022483, 2695969, 3546601, 4609801, 5926051, 7541353, 9507709, 11883621, 14734611, 18133761, 22162273, 26910049, 32476291 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
a(n) is the number of ternary strings of length n that contain either none or three 0's and either none or three 1's.
LINKS
FORMULA
E.g.f.: exp(x)*(1 + x^3/6)^2.
O.g.f.:(1 - 6*x + 15*x^2 - 18*x^3 + 9*x^4 + 19*x^6)/(1 - x)^7. - Stefano Spezia, Feb 19 2021
EXAMPLE
a(7)=211 since the strings are the 140 permutations of 0001112, the 35 permutations of 0002222, the 35 permutations of 1112222, and 2222222.
CROSSREFS
Sequence in context: A296719 A060578 A147078 * A146416 A260185 A307105
KEYWORD
nonn,easy
AUTHOR
Enrique Navarrete, Feb 17 2021
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 May 16 12:41 EDT 2024. Contains 372552 sequences. (Running on oeis4.)