Young Number
Calculates the Young tableau number of the given order.
Controller: CodeCogs
Interface
C++
Excel
Young Number
intyoung_number( | int | 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.htmlParameters
n the desired order
Returns
- the Young tableau number of order n
Authors
- Lucian Bentea (August 2005)
Source Code
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.