I am trying to ListPlot[] the FareySequence[] command. I need to find the first 70 terms of this sequence.
I’ve been trying really hard by using Table[] to create the function first. Then, I have no idea how to do so. Please help me.
There are no “first 70 terms” of the Farey sequence. There is a separate Farey sequence for each integer. FareySequence[15] has 73 terms, so maybe that’s the one you want to plot. You can do that simply with,
I am sure many of you have spotted the mathematical nonsense of my coding above - as it occurred to me in a sleepless night. What is wanted is of course, the numbers of a single sequence (here e.g., FareySequence[70]) plotted according to their values and their denominators:
@chiao-yin hsu: The problem in your code is that you are plotting 70 sequences but without deleting the duplicates - as I did in my first approach (by using the complements successively).