Or login with:
| std::vector<int>schroeder_numbers_list( | int | n | ) |
#include <codecogs/maths/combinatorics/sequences/schroeder_numbers_list.h> #include <iostream> int main() { std::vector<int> result = Maths::Combinatorics::Sequences::schroeder_numbers_list(10); std::cout << "Number of values: " << result.size() << std::endl; for (int i = 0; i < result.size(); i++) std::cout << result[i] << " "; std::cout << std::endl; return 0; }
Number of values: 10 1 1 3 11 45 197 903 4279 20793 103049
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.
You must login to leave a messge