Directly,
Thus take , , , and . They are nonnegative and
Each finite block of a continued fraction acts by a fractional linear transformation with an integral matrix of determinant . If the block repeats, removing one period leaves the same tail , so
for integers . Hence , with the linear case allowed when .
For period ,
so
The continued fraction is positive, so it is the positive root
while the other root is negative.

There are unlisted articles, also show them or only show them.