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!)
A152494 1/3 of the number of permutations of 2 indistinguishable copies of 1..n with exactly 2 local maxima. 9
0, 1, 19, 235, 2539, 26119, 263863, 2648107, 26513875, 265250287, 2652876847, 26530008499, 265304159371, 2653054879735, 26530591844071, 265306057146811, 2653061016284227, 26530611583384063, 265306120353746335, 2653061217872021443, 26530612224048411643 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(n) = (13*10^(n-1) - 13*3^(n-1) - 14*(n-1)*3^(n-1))/49. - Andrew Howroyd, May 10 2020
From Colin Barker, May 19 2020: (Start)
G.f.: x*(1 + 3*x) / ((1 - 3*x)^2*(1 - 10*x)).
a(n) = 16*a(n-1) - 69*a(n-2) + 90*a(n-3) for n>3.
(End)
PROG
(PARI) a(n) = {(13*10^(n-1) - 13*3^(n-1) - 14*(n-1)*3^(n-1))/49} \\ Andrew Howroyd, May 10 2020
(PARI) concat(0, Vec(x*(1 + 3*x) / ((1 - 3*x)^2*(1 - 10*x)) + O(x^20))) \\ Colin Barker, May 19 2020
CROSSREFS
Cf. A334773.
Sequence in context: A025965 A276201 A025960 * A171158 A022033 A025938
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Dec 06 2008
EXTENSIONS
Terms a(12) and beyond from Andrew Howroyd, May 10 2020
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 13 03:04 EDT 2024. Contains 372497 sequences. (Running on oeis4.)