Skip to content

SternBrocotPath ​

The Stern–Brocot path of a positive rational p/qp/q: its sequence of left and right turns down the tree from 1/11/1.

SternBrocotPath(p, q)the path, as a word of LLs and RRs
Typed signatures
TypePackageApplies
(integer, integer) -> stringmodularalways

Domain: The modular group

Examples

Basic #

Right, left, right from 1/11/1

live ↗
InSternBrocotPath(5,3)\mathrm{SternBrocotPath}(5, 3)OutRLR\text{RLR}
About
Examples1

See also: FromSternBrocotPath, ModularWord