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!)
A341705 a(n) = 70*binomial(n,8) + 2*binomial(n,4) + 1. 2
1, 1, 1, 1, 3, 11, 31, 71, 211, 883, 3571, 12211, 35641, 91521, 212213, 453181, 904541, 1706461, 3069181, 5298493, 8827591, 14256271, 22398531, 34339691, 51504223, 75735551, 109389151, 155440351, 217608301, 300497653, 409759561, 552273681, 736352921, 971972761 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
COMMENTS
a(n) is the number of ternary strings of length n that contain either none or four 0's and either none or four 1's.
LINKS
Index entries for linear recurrences with constant coefficients, signature (9,-36,84,-126,126,-84,36,-9,1).
FORMULA
E.g.f.: exp(x)*(1 + x^4/24)^2.
O.g.f.:(1 - 8*x + 28*x^2 - 56*x^3 + 72*x^4 - 64*x^5 + 40*x^6 - 16*x^7 + 73*x^8)/(1 - x)^9. - Stefano Spezia, Feb 19 2021
EXAMPLE
a(9)=883 since the strings are the 630 permutations of 000011112, the 126 permutations of 000022222, the 126 permutations of 111122222, and 222222222.
CROSSREFS
Sequence in context: A107587 A245931 A190590 * A241693 A087323 A236752
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 9 01:26 EDT 2024. Contains 372341 sequences. (Running on oeis4.)