Guest User

Untitled

a guest
Oct 15th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. list = Partition[Range[0, 48], 7];
  2.  
  3. f[n_] := With[{val = Mod[FactorInteger[n! + 1][[1, 1]], 3]},
  4. val /. {0 -> Blue, 1 -> Green, 2 -> Red}]
  5.  
  6. Image[Map[f, list, {2}]]
Add Comment
Please, Sign In to add comment