login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A260616 Irregular triangle read by rows: continued fraction expansion of k/n, 1 <= k <= n. 1
1, 0, 2, 1, 0, 3, 0, 1, 2, 1, 0, 4, 0, 2, 0, 1, 3, 1, 0, 5, 0, 2, 2, 0, 1, 1, 2, 0, 1, 4, 1, 0, 6, 0, 3, 0, 2, 0, 1, 2, 0, 1, 5, 1, 0, 7, 0, 3, 2, 0, 2, 3, 0, 1, 1, 3, 0, 1, 2, 2, 0, 1, 6, 1, 0, 8, 0, 4, 0, 2, 1, 2, 0, 2, 0, 1, 1, 1, 2, 0, 1, 3, 0, 1, 7, 1, 0, 9, 0, 4, 2, 0, 3, 0, 2, 4, 0, 1, 1, 4, 0, 1, 2, 0, 1, 3, 2, 0, 1, 8, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
This sequence contains the terms of the continued fraction expansion of all fractions involving integers between 0 and 1, excluding 0/n.
The number of distinct continued fractions in row n is equal to A000010(n).
LINKS
Matthew Campbell and Robert Israel, Table of n, a(n) for n = 1..22438 (rows 1 to 100, flattened; n = 1..1722 from Matthew Campbell)
EXAMPLE
Triangle begins ({} included for fraction separation):
{1}
{0, 2}, {1}
{0, 3}, {0, 1, 2}, {1}
{0, 4}, {0, 2}, {0, 1, 3}, {1}
{0, 5}, {0, 2, 2}, {0, 1, 1, 2}, {0, 1, 4}, {1}
{0, 6}, {0, 3}, {0, 2}, {0, 1, 2}, {0, 1, 5}, {1}
{0, 7}, {0, 3, 2}, {0, 2, 3}, {0, 1, 1, 3}, {0, 1, 2, 2}, {0, 1, 6}, {1}
{0, 8}, {0, 4}, {0, 2, 1, 2}, {0, 2}, {0, 1, 1, 1, 2}, {0, 1, 3}, {0, 1, 7}, {1}
{0, 9}, {0, 4, 2}, {0, 3}, {0, 2, 4}, {0, 1, 1, 4}, {0, 1, 2}, {0, 1, 3, 2}, {0, 1, 8}, {1}
...
MAPLE
seq(seq(op(numtheory:-cfrac(k/n, 'quotients')), k=1..n), n=1..10); # Robert Israel, Sep 04 2015
MATHEMATICA
Table[ContinuedFraction[k/n], {n, 9}, {k, n}] // Flatten (* Michael De Vlieger, Sep 04 2015 *)
PROG
(PARI) row(n) = {v = []; for (k=1, n, v = concat(v, contfrac(k/n)); ); v; }
tabf(nn) = for (n=1, nn, print(row(n), ", ")) \\ Michel Marcus, Sep 04 2015
CROSSREFS
Denominator: A002024; Numerator: A002260.
Cf. A000010, A072193 (0<k<n).
Sequence in context: A200123 A187616 A217262 * A284950 A308298 A364106
KEYWORD
nonn,cofr,tabf
AUTHOR
Matthew Campbell, Sep 03 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:05 EDT 2024. Contains 371963 sequences. (Running on oeis4.)