# TA’s Challenge Problem #5

• Jul 14th 2009, 05:29 AM
TheAbstractionist
TA’s Challenge Problem #5
This will be a very easy problem indeed.

Find the continued-fraction expansion of $n+\sqrt{n^2+k}$ where $n,\,k$ are positive integers and $k$ divides $2n.$
• Jul 14th 2009, 06:44 PM
NonCommAlg
Quote:

Originally Posted by TheAbstractionist
This will be a very easy problem indeed.

Find the continued-fraction expansion of $n+\sqrt{n^2+k}$ where $n,\,k$ are positive integers and $k$ divides $2n.$

considering the condition $d \mid 2n,$ i guess you're looking for a "simple" continued fraction of $n + \sqrt{n^2+k}.$ let $2n=kd$ and $x=n+\sqrt{n^2 +k}.$ then $x=2n + \frac{1}{d + \frac{1}{x}}.$ therefore: $n+\sqrt{n^2+k}= 2n \ + \ \frac{1}{d \ + \ \frac{1}{2n \ + \ \frac{1}{d \ + \ \frac{1}{2n \ + \ \cdots}}}}.$