Farey Fraction Pattern Graph – Plotting Reduced Fractions (x/y, y)

Farey Fraction Pattern Graph – Plotting Reduced Fractions (x/y, y)
Loading the math board and drawing, please wait…
2012-06-26 11:00
This example plots the points (x/y, y) for every reduced fraction x/y, revealing the characteristic pattern of Farey sequences. It illustrates concepts of reduced fractions, Farey sequences, coordinate geometry, and sequence generation. The construction uses GeoGebra’s Sequence and If commands to create the point list fareypoints, with maxdenom controlling the denominator bound, and auxiliary objects A, n, a, f, g, and text1‑text4 for dynamic labeling and interaction. Designed for high‑school and undergraduate mathematics classes, it serves as a visual tool for number theory, fraction visualization, and dynamic graphing techniques.

GeoGebra Commands & Parameters

  1. Sequence(Sequence[If[GCD[i, j] ≟ 1, (j / i, i)], j, 1, i], i, 1, maxdenom) → fareypoints
  2. If(x > 0, n / x) → f
  3. If(x < 1, n / (1 - x)) → g

AI Drawing Prompt Reference

Plot the Farey fraction pattern graph with points (x/y, y) for every reduced fraction x/y. Adjust the maxdenom parameter to control the detail level. First, generate the fareypoints sequence, then draw the functions f(x) = n/x (x > 0) and g(x) = n/(1-x) (x < 1), where n is an integer.
The prompt above was compiled from the original drawing commands and is for reference only.