# How to get the Area of a Dyck path

Given a Dyck path $\pi$, the Area($\pi$) is the set of boxes $(i,j)$ such that $i < j$ and $(i,j)$ is under $\pi$.

How to get the area of a given Dyck path from some given DyckWord pi ?

Somehow the latex is not rendering correctly, hope someone fixes it.

Didn't you read documentation? Or what is your concern? https://doc.sagemath.org/html/en/refe...

sage has area and area_sequence. area is the cardinality of the set Area. I want the set Area, not its cardinality.

What is the reason for downvote!

Sounds like a homework problem.