File:Coprime8.svg

Summary

Description
English: Coprime number generation graph.
Date
Source Own work
Author Jgmoxness

Mathematica source

(*Modified original from Wikipedia User Stpasha*)
clr@i_:={Red,Orange,Yellow,Green,Cyan,Blue,Purple,Magenta,Pink,Gray,Black}[[i]];
style@n_:={PointSize@((1+n-#)/(4n^2)),clr@#}&/@Range[1+n];
f@x_:={{2#[[1]]-#[[2]],#[[1]]},{2#[[1]]+#[[2]],#[[1]]},{#[[1]]+2#[[2]],#[[2]]}}&/@x;
ticks=5{Range@17-1,Range@9-1};
doPlot@n_:=ListPlot[NestList[Flatten[f@#,1]&,{{2,1}},n],GridLines->ticks,Frame->True,FrameTicks->ticks,AspectRatio->1,PlotRange->{{0,80},{0,40}},LabelStyle->Directive@Medium,PlotStyle->style@n];
n=8;
out=doPlot@n
Export["Coprime"<>ToString@n<>".svg",out]

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-3.0#Coprime8.svgCategory:Self-published work
Category:Coprime integers Category:Scatterplots of integer sequences
Category:CC-BY-SA-3.0 Category:Coprime integers Category:Scatterplots of integer sequences Category:Self-published work