Macaulay2 » Documentation
Packages » LexIdeals :: macaulayRep
next | previous | forward | backward | up | index | toc

macaulayRep -- the Macaulay representation of an integer

Synopsis

Description

Yields the d-th Macaulay representation of the integer a. Given a positive integer d, each positive integer a can be uniquely represented as a sum of binomials binomial(b_d,d) + binomial(b_{d-1},d-1) + ... + binomial(b_1,1), where b_d > b_{d-1} > ... > b_1 >= 0.

i1 : macaulayRep(100,4)

o1 = {{8, 4}, {6, 3}, {5, 2}}

o1 : List
i2 : macaulayRep(10,5)

o2 = {{6, 5}, {4, 4}, {3, 3}, {2, 2}, {1, 1}}

o2 : List

See also

Ways to use macaulayRep :

For the programmer

The object macaulayRep is a method function.