Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Counting lattice path with Sge

Quite newbie with Sage but I try to count very standard lattice path with steps (1,0) and (0,1) on a grin (0,0) to (m,n) for positive integers n and m. I want also put constraints like for example "not touching the main. diagonal".

I can program it but maybe there are Sage libraries that can help me?

Thanks for any suggestions Gianfranco

Counting lattice path with Sge

Quite newbie with Sage but I try to count very standard lattice path with steps (1,0) and (0,1) on a grin (0,0) to (m,n) for positive integers n and m. I want also put constraints like for example "not touching the main. diagonal".

I can program it but maybe there are Sage libraries that can help me?

Thanks for any suggestions Gianfranco