[go: up one dir, main page]

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!)
Revision History for A340766 (Underlined text is an addition; strikethrough text is a deletion.)

Showing entries 1-10 | older changes
A340766 Number of ordered subsequences of {1,...,2n} containing at least n elements and such that the first differences contain only odd numbers.
(history; published version)
#35 by Alois P. Heinz at Sun May 29 13:36:30 EDT 2022
STATUS

proposed

approved

#34 by Jean-François Alcover at Sun May 29 12:56:44 EDT 2022
STATUS

editing

proposed

#33 by Jean-François Alcover at Sun May 29 12:56:39 EDT 2022
MATHEMATICA

g[n_, k_] := g[n, k] = Which[k > n, 0, k == 0, 1, k == 1, n,

True, g[n - 1, k - 1] + g[n - 2, k]];

b[n_, k_] := b[n, k] = If[k > n, 0, g[n, k] + b[n, k + 1]];

a[n_] := b[2*n, n];

Table[a[n], {n, 0, 30}] (* Jean-François Alcover, May 29 2022, after Alois P. Heinz *)

STATUS

approved

editing

#32 by Vaclav Kotesovec at Sat Jun 19 04:41:06 EDT 2021
STATUS

editing

approved

#31 by Vaclav Kotesovec at Sat Jun 19 04:40:46 EDT 2021
FORMULA

a(n) ~ c * (27/4)^(n/2) / sqrt(3*Pi*n/2), where c = 14 if n is even and c = 8*sqrt(3) if n is odd. Equivalently, c = 7 + 4*sqrt(3) + (7 - 4*sqrt(3))*(-1)^n. - Vaclav Kotesovec, Jun 19 2021

STATUS

approved

editing

#30 by Alois P. Heinz at Thu Jun 10 15:48:41 EDT 2021
STATUS

editing

approved

#29 by Alois P. Heinz at Thu Jun 10 15:48:28 EDT 2021
LINKS

Alois P. Heinz, <a href="/A340766/b340766.txt">Table of n, a(n) for n = 0..2413</a>

#28 by Alois P. Heinz at Thu Jun 10 15:33:43 EDT 2021
MAPLE

g:= proc(n, k) option remember; `if`(k>n, 0,

`if`(k in [0, 1], n^k, g(n-1, k-1)+g(n-2, k)))

end:

b:= proc(n, k) option remember;

`if`(k>n, 0, g(n, k)+b(n, k+1))

end:

a:= n-> b(2*n, n):

seq(a(n), n=0..30);

#27 by Alois P. Heinz at Thu Jun 10 15:33:10 EDT 2021
EXAMPLE

a(3) = 17: [1,2,3], [1,2,5], [1,4,5], [2,3,4], [2,3,6], [2,5,6], [3,4,5], [4,5,6], [1,2,3,4], [1,2,3,6], [1,2,5,6], [1,4,5,6], [2,3,4,5], [3,4,5,6], [1,2,3,4,5], [2,3,4,5,6], [1,2,3,4,5,6].

#26 by Alois P. Heinz at Thu Jun 10 15:31:29 EDT 2021
NAME

a

Number of ordered subsequences of {1,...,2n} containing at least n elements and such that the first differences contain only odd numbers.

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 29 23:09 EDT 2024. Contains 375519 sequences. (Running on oeis4.)