Advertisement
Matthen

Congruence Pic

Jun 4th, 2011
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. node[a_, p_, b_] := PowerMod[a, b, p];
  2. p = 37;
  3. res = Table[
  4. GraphPlot[Table[i -> node[i, p, k], {i, 1, p - 1}],
  5. PlotStyle -> Black, Method -> "CircularEmbedding",
  6. ImageSize -> 100, PackingMethod -> "ClosestPacking"], {k, 1,
  7. p - 1}];
  8. res2 = Table[
  9. res[[If[6 i + j < 37, 6 i + j, 37]]], {i, 0, 5}, {j, 1, 6}];
  10. GraphicsGrid[res2]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement