The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A191607 Table of the difference of numerator and denominator of Farey sequences, read by rows. 1
1, 0, 1, 1, 0, 1, 2, 1, 1, 0, 1, 3, 2, 1, 1, 1, 0, 1, 4, 3, 2, 3, 1, 2, 1, 1, 1, 0, 1, 5, 4, 3, 2, 3, 1, 2, 1, 1, 1, 1, 0, 1, 6, 5, 4, 3, 5, 2, 3, 4, 1, 3, 2, 1, 2, 1, 1, 1, 1, 0, 1, 7, 6, 5, 4, 3, 5, 2, 5, 3, 4, 1, 3, 2, 3, 1, 2, 1, 1, 1, 1, 1, 0, 1, 8, 7, 6, 5, 4, 7, 3, 5, 2, 5, 3, 4, 5, 1, 4, 3, 2, 3, 1, 2, 1, 2, 1, 1, 1, 1, 1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,7
COMMENTS
For n>=1, the n-th row begins with 1, n-1 and ends with 1, 0.
1, 0
1, 1, 0
1, 2, 1, 1, 0
1, 3, 2, 1, 1, 1, 0
1, 4, 3, 2, 3, 1, 2, 1, 1, 1, 0
etc.
Row n has A005728(n) terms. - Michel Marcus, Jun 27 2014
LINKS
MATHEMATICA
Farey[n_] := Union[ Flatten[ Join[{0}, Table[a/b, {b, n}, {a, b}]]]]; Table[ -Numerator@ Farey@ n + Denominator@ Farey@ n, {n, 9}] // Flatten
CROSSREFS
Cf. A133404.
Sequence in context: A174295 A158511 A092921 * A029387 A070878 A228128
KEYWORD
easy,tabf,nonn
AUTHOR
Robert G. Wilson v, Jun 11 2011
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 May 14 16:21 EDT 2024. Contains 372533 sequences. (Running on oeis4.)