OFFSET
1,3
COMMENTS
The positive integers coprime to n and <= n can be written either from largest to smallest or from smallest to largest and the numerator of the continued fraction would remain unchanged.
EXAMPLE
The positive integers coprime to 8 and <= 8 are 1,3,5,7. So a(8) is the numerator of 1 +1/(3 +1/(5 +1/7)) = 151/115. a(8) is also the numerator of 7 +1/(5 +1/(3 +1/1)) = 151/21.
MATHEMATICA
f[n_] := Select[Range[n], GCD[ #, n] == 1 &]; g[n_] := Numerator[FromContinuedFraction[f[n]]]; Table[g[n], {n, 26}] (* Ray Chandler, Jan 22 2007 *)
CROSSREFS
KEYWORD
frac,nonn
AUTHOR
Leroy Quet, Jan 19 2007
EXTENSIONS
Extended by Ray Chandler, Jan 22 2007
STATUS
approved