FUNCTION
Young_Number
Calculates the Young tableau number of the given order.
Interface
#include <codecogs/maths/combinatorics/sequences/young_number.h>
using namespace Maths::Combinatorics::Sequences;
This function computes the Young tableau number of order n, using the following recurrent sequence:
(1)
with initial values
(2)
Parameters
n
the desired order
Returns
the Young tableau number of order n
Example:
#include <codecogs/maths/combinatorics/sequences/young_number.h>
#include <iostream>
int main()
{
std::cout << "Young tableau numbers for 0 < n < 10" << std::endl;
for (int i = 1; i < 10; i++)
std::cout << i << " " << Maths::Combinatorics::Sequences::young_number(i) << std::endl;
return 0;
}
Output:
Young tableau numbers for 0 < n < 10
1 1
2 2
3 4
4 10
5 26
6 76
7 232
8 764
9 2620
References
SUBSET, a C++ library of combinatorial routines, http://www.csit.fsu.edu/~burkardt/cpp_src/subset/subset.html
Interactive Calculator
n
Result
Computing…
Set a range above first to export a graph.
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.