{"action":"created","issue":{"url":"https://api.github.com/repos/pedritomelenas/Algebra-II/issues/2","labels_url":"https://api.github.com/repos/pedritomelenas/Algebra-II/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/pedritomelenas/Algebra-II/issues/2/comments","events_url":"https://api.github.com/repos/pedritomelenas/Algebra-II/issues/2/events","html_url":"https://github.com/pedritomelenas/Algebra-II/issues/2","id":111957915,"number":2,"title":"Salida en html o latex","user":{"login":"pedritomelenas","id":9551023,"avatar_url":"https://avatars.githubusercontent.com/u/9551023?v=3","gravatar_id":"","url":"https://api.github.com/users/pedritomelenas","html_url":"https://github.com/pedritomelenas","followers_url":"https://api.github.com/users/pedritomelenas/followers","following_url":"https://api.github.com/users/pedritomelenas/following{/other_user}","gists_url":"https://api.github.com/users/pedritomelenas/gists{/gist_id}","starred_url":"https://api.github.com/users/pedritomelenas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedritomelenas/subscriptions","organizations_url":"https://api.github.com/users/pedritomelenas/orgs","repos_url":"https://api.github.com/users/pedritomelenas/repos","events_url":"https://api.github.com/users/pedritomelenas/events{/privacy}","received_events_url":"https://api.github.com/users/pedritomelenas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pedritomelenas/Algebra-II/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-17T11:25:17Z","updated_at":"2015-10-18T13:22:26Z","closed_at":null,"body":"print(G) produzca una salida en html o en latex de la tabla de multiplicación"},"comment":{"url":"https://api.github.com/repos/pedritomelenas/Algebra-II/issues/comments/149014144","html_url":"https://github.com/pedritomelenas/Algebra-II/issues/2#issuecomment-149014144","issue_url":"https://api.github.com/repos/pedritomelenas/Algebra-II/issues/2","id":149014144,"user":{"login":"pedritomelenas","id":9551023,"avatar_url":"https://avatars.githubusercontent.com/u/9551023?v=3","gravatar_id":"","url":"https://api.github.com/users/pedritomelenas","html_url":"https://github.com/pedritomelenas","followers_url":"https://api.github.com/users/pedritomelenas/followers","following_url":"https://api.github.com/users/pedritomelenas/following{/other_user}","gists_url":"https://api.github.com/users/pedritomelenas/gists{/gist_id}","starred_url":"https://api.github.com/users/pedritomelenas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedritomelenas/subscriptions","organizations_url":"https://api.github.com/users/pedritomelenas/orgs","repos_url":"https://api.github.com/users/pedritomelenas/repos","events_url":"https://api.github.com/users/pedritomelenas/events{/privacy}","received_events_url":"https://api.github.com/users/pedritomelenas/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T13:22:26Z","updated_at":"2015-10-18T13:22:26Z","body":"No tenemos ciclos aún, sólo permutaciones: GroupElement((1,2,3),S3) da la \nidentidad en S3=Sn(3).\n\nAbro otra conversación para ciclos.\n\n\nEnviado con Aquamail para Android\nhttp://www.aqua-mail.com\n\n\nEl 18 de octubre de 2015 2:47:04 p. m. jlbueso <notifications@github.com> \nescribio:\n\n> Está sin terminar.\n> Ten en cuenta mis pocos conocimientos de programación.\n> Te mando lo último.\n> Una preggunta, como representaremos las permutaciones (entre cochetes?)\n> [1,3,4,2]\n> y los ciclos (entre paréntesis?)\n> Saludos y no me escribas a las 3 de la mañana\n> Pepe\n>\n>\n> {\n>  \"cells\": [\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": 118,\n>    \"metadata\": {\n>     \"collapsed\": true\n>    },\n>    \"outputs\": [],\n>    \"source\": [\n>     \"from absalg import *\"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": 119,\n>    \"metadata\": {\n>     \"collapsed\": false\n>    },\n>    \"outputs\": [],\n>    \"source\": [\n>     \"G=Sn(3)\"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"raw\",\n>    \"metadata\": {},\n>    \"source\": [\n>     \"print(G)\"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": 120,\n>    \"metadata\": {\n>     \"collapsed\": true\n>    },\n>    \"outputs\": [],\n>    \"source\": [\n>     \"from ipy_table import *\"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": 121,\n>    \"metadata\": {\n>     \"collapsed\": false,\n>     \"scrolled\": true\n>    },\n>    \"outputs\": [],\n>    \"source\": [\n>     \"r=10\\n\",\n>     \"G=list(range(r))\\n\",\n>     \"if len(G) > 26:\\n\",\n>     \"        print(\\\"Este grupo es demasiado grande para imprimir su tabla de \n>     Cayley\\\")   \\n\",\n>     \"letras = \n>     ['e','a','b','c','d','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',\\n\",\n>     \"          'v','w','x','y','z']         \\n\",\n>     \"colores=['Red','Yellow','Lime','Blue','Tan','YellowGreen','Violet','SkyBlue','Tomato',\\n\",\n>     \"        'Plum','PaleGreen','Magenta','Mocassin','LightPink', \n>     'LightCyan','Khaki','Ivory','Gray','Fuchsia',\\n\",\n>     \"       \n>     'Green','Coral','Bisque','Aqua','Azure','DeepPink','Gainsboro','HotPink']\\n\",\n>     \"elem_color=dict(zip(G,colores))\\n\",\n>     \"elem_letra=dict(zip(G,letras))\\n\",\n>     \"G=[G[0]]+G\\n\",\n>     \"lista=[[(i+j) %r for i in G] for j in G] \\n\",\n>     \"from ipy_table import *\\n\",\n>     \"make_table(lista,interactive=False)\\n\",\n>     \"for i in range(len(G)):\\n\",\n>     \"    for j in range(len(G)):\\n\",\n>     \"        set_cell_style(i, j,color=elem_color[lista[i][j]])\\n\",\n>     \"set_cell_style(0,0, no_border='left,top',color='White')         \\n\",\n>     \"lista[0][0] = 'Z<sub>r</sub>' \"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": 122,\n>    \"metadata\": {\n>     \"collapsed\": false\n>    },\n>    \"outputs\": [\n>     {\n>      \"data\": {\n>       \"text/html\": [\n>        \"<table border=\\\"1\\\" cellpadding=\\\"3\\\" cellspacing=\\\"0\\\"  \n>        style=\\\"border:1px solid black;border-collapse:collapse;\\\"><tr><td  \n>        style=\\\"background-color:White;border-left: 1px solid \n>        transparent;border-top: 1px solid transparent;\\\">Z<sub>r</sub></td><td  \n>        style=\\\"background-color:Red;\\\">0</td><td  \n>        style=\\\"background-color:Yellow;\\\">1</td><td  \n>        style=\\\"background-color:Lime;\\\">2</td><td  \n>        style=\\\"background-color:Blue;\\\">3</td><td  \n>        style=\\\"background-color:Tan;\\\">4</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">5</td><td  \n>        style=\\\"background-color:Violet;\\\">6</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">7</td><td  \n>        style=\\\"background-color:Tomato;\\\">8</td><td  \n>        style=\\\"background-color:Plum;\\\">9</td></tr><tr><td  \n>        style=\\\"background-color:Red;\\\">0</td><td  \n>        style=\\\"background-color:Red;\\\">0</td><td  \n>        style=\\\"background-color:Yellow;\\\">1</td><td  \n>        style=\\\"background-color:Lime;\\\">2</td><td  \n>        style=\\\"background-color:Blue;\\\">3</td><td  \n>        style=\\\"background-color:Tan;\\\">4</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">5</td><td  \n>        style=\\\"background-color:Violet;\\\">6</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">7</td><td  \n>        style=\\\"background-color:Tomato;\\\">8</td><td  \n>        style=\\\"background-color:Plum;\\\">9</td></tr><tr><td  \n>        style=\\\"background-color:Yellow;\\\">1</td><td  \n>        style=\\\"background-color:Yellow;\\\">1</td><td  \n>        style=\\\"background-color:Lime;\\\">2</td><td  \n>        style=\\\"background-color:Blue;\\\">3</td><td  \n>        style=\\\"background-color:Tan;\\\">4</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">5</td><td  \n>        style=\\\"background-color:Violet;\\\">6</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">7</td><td  \n>        style=\\\"background-color:Tomato;\\\">8</td><td  \n>        style=\\\"background-color:Plum;\\\">9</td><td  \n>        style=\\\"background-color:Red;\\\">0</td></tr><tr><td  \n>        style=\\\"background-color:Lime;\\\">2</td><td  \n>        style=\\\"background-color:Lime;\\\">2</td><td  \n>        style=\\\"background-color:Blue;\\\">3</td><td  \n>        style=\\\"background-color:Tan;\\\">4</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">5</td><td  \n>        style=\\\"background-color:Violet;\\\">6</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">7</td><td  \n>        style=\\\"background-color:Tomato;\\\">8</td><td  \n>        style=\\\"background-color:Plum;\\\">9</td><td  \n>        style=\\\"background-color:Red;\\\">0</td><td  \n>        style=\\\"background-color:Yellow;\\\">1</td></tr><tr><td  \n>        style=\\\"background-color:Blue;\\\">3</td><td  \n>        style=\\\"background-color:Blue;\\\">3</td><td  \n>        style=\\\"background-color:Tan;\\\">4</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">5</td><td  \n>        style=\\\"background-color:Violet;\\\">6</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">7</td><td  \n>        style=\\\"background-color:Tomato;\\\">8</td><td  \n>        style=\\\"background-color:Plum;\\\">9</td><td  \n>        style=\\\"background-color:Red;\\\">0</td><td  \n>        style=\\\"background-color:Yellow;\\\">1</td><td  \n>        style=\\\"background-color:Lime;\\\">2</td></tr><tr><td  \n>        style=\\\"background-color:Tan;\\\">4</td><td  \n>        style=\\\"background-color:Tan;\\\">4</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">5</td><td  \n>        style=\\\"background-color:Violet;\\\">6</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">7</td><td  \n>        style=\\\"background-color:Tomato;\\\">8</td><td  \n>        style=\\\"background-color:Plum;\\\">9</td><td  \n>        style=\\\"background-color:Red;\\\">0</td><td  \n>        style=\\\"background-color:Yellow;\\\">1</td><td  \n>        style=\\\"background-color:Lime;\\\">2</td><td  \n>        style=\\\"background-color:Blue;\\\">3</td></tr><tr><td  \n>        style=\\\"background-color:YellowGreen;\\\">5</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">5</td><td  \n>        style=\\\"background-color:Violet;\\\">6</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">7</td><td  \n>        style=\\\"background-color:Tomato;\\\">8</td><td  \n>        style=\\\"background-color:Plum;\\\">9</td><td  \n>        style=\\\"background-color:Red;\\\">0</td><td  \n>        style=\\\"background-color:Yellow;\\\">1</td><td  \n>        style=\\\"background-color:Lime;\\\">2</td><td  \n>        style=\\\"background-color:Blue;\\\">3</td><td  \n>        style=\\\"background-color:Tan;\\\">4</td></tr><tr><td  \n>        style=\\\"background-color:Violet;\\\">6</td><td  \n>        style=\\\"background-color:Violet;\\\">6</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">7</td><td  \n>        style=\\\"background-color:Tomato;\\\">8</td><td  \n>        style=\\\"background-color:Plum;\\\">9</td><td  \n>        style=\\\"background-color:Red;\\\">0</td><td  \n>        style=\\\"background-color:Yellow;\\\">1</td><td  \n>        style=\\\"background-color:Lime;\\\">2</td><td  \n>        style=\\\"background-color:Blue;\\\">3</td><td  \n>        style=\\\"background-color:Tan;\\\">4</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">5</td></tr><tr><td  \n>        style=\\\"background-color:SkyBlue;\\\">7</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">7</td><td  \n>        style=\\\"background-color:Tomato;\\\">8</td><td  \n>        style=\\\"background-color:Plum;\\\">9</td><td  \n>        style=\\\"background-color:Red;\\\">0</td><td  \n>        style=\\\"background-color:Yellow;\\\">1</td><td  \n>        style=\\\"background-color:Lime;\\\">2</td><td  \n>        style=\\\"background-color:Blue;\\\">3</td><td  \n>        style=\\\"background-color:Tan;\\\">4</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">5</td><td  \n>        style=\\\"background-color:Violet;\\\">6</td></tr><tr><td  \n>        style=\\\"background-color:Tomato;\\\">8</td><td  \n>        style=\\\"background-color:Tomato;\\\">8</td><td  \n>        style=\\\"background-color:Plum;\\\">9</td><td  \n>        style=\\\"background-color:Red;\\\">0</td><td  \n>        style=\\\"background-color:Yellow;\\\">1</td><td  \n>        style=\\\"background-color:Lime;\\\">2</td><td  \n>        style=\\\"background-color:Blue;\\\">3</td><td  \n>        style=\\\"background-color:Tan;\\\">4</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">5</td><td  \n>        style=\\\"background-color:Violet;\\\">6</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">7</td></tr><tr><td  \n>        style=\\\"background-color:Plum;\\\">9</td><td  \n>        style=\\\"background-color:Plum;\\\">9</td><td  \n>        style=\\\"background-color:Red;\\\">0</td><td  \n>        style=\\\"background-color:Yellow;\\\">1</td><td  \n>        style=\\\"background-color:Lime;\\\">2</td><td  \n>        style=\\\"background-color:Blue;\\\">3</td><td  \n>        style=\\\"background-color:Tan;\\\">4</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">5</td><td  \n>        style=\\\"background-color:Violet;\\\">6</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">7</td><td  \n>        style=\\\"background-color:Tomato;\\\">8</td></tr></table>\"\n>       ],\n>       \"text/plain\": [\n>        \"<ipy_table.IpyTable at 0x4b91a90>\"\n>       ]\n>      },\n>      \"execution_count\": 122,\n>      \"metadata\": {},\n>      \"output_type\": \"execute_result\"\n>     }\n>    ],\n>    \"source\": [\n>     \"r=5\\n\",\n>     \"Zn_color(5)\\n\",\n>     \"render()\"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": 123,\n>    \"metadata\": {\n>     \"collapsed\": false\n>    },\n>    \"outputs\": [],\n>    \"source\": [\n>     \"r=11\\n\",\n>     \"G=list(range(r))\\n\",\n>     \"if len(G) > 26:\\n\",\n>     \"    print(\\\"Este grupo es demasiado grande para imprimir su tabla de \n>     Cayley\\\")\\n\",\n>     \"letras = \n>     ['e','a','b','c','d','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',\\n\",\n>     \"          'v','w','x','y','z']         \\n\",\n>     \"colores=['Red','Yellow','Lime','Blue','Tan','YellowGreen','Violet','SkyBlue','Tomato',\\n\",\n>     \"        'Plum','PaleGreen','Magenta','Mocassin','LightPink', \n>     'LightCyan','Khaki','Ivory','Gray','Fuchsia',\\n\",\n>     \"       \n>     'Green','Coral','Bisque','Aqua','Azure','DeepPink','Gainsboro','HotPink']\\n\",\n>     \"elem_color=dict(zip(G,colores))\\n\",\n>     \"elem_letra=dict(zip(G,letras))\\n\",\n>     \"G=[G[0]]+G\\n\",\n>     \"lista=[[(i+j) %r for i in G] for j in G] \\n\",\n>     \"lista2=[[elem_letra[(i+j) %r] for i in G] for j in G] \\n\",\n>     \"from ipy_table import *\\n\",\n>     \"make_table(lista2,interactive=False)\\n\",\n>     \"for i in range(len(G)):\\n\",\n>     \"    for j in range(len(G)):\\n\",\n>     \"        set_cell_style(i, j,color=elem_color[lista[i][j]])\\n\",\n>     \"set_cell_style(0,0, no_border='left,top',color='White')         \\n\",\n>     \"lista2[0][0] = 'Z<sub>r</sub>' \"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": 124,\n>    \"metadata\": {\n>     \"collapsed\": false\n>    },\n>    \"outputs\": [\n>     {\n>      \"data\": {\n>       \"text/html\": [\n>        \"<table border=\\\"1\\\" cellpadding=\\\"3\\\" cellspacing=\\\"0\\\"  \n>        style=\\\"border:1px solid black;border-collapse:collapse;\\\"><tr><td  \n>        style=\\\"background-color:White;border-left: 1px solid \n>        transparent;border-top: 1px solid transparent;\\\">Z<sub>r</sub></td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Violet;\\\">g</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">h</td><td  \n>        style=\\\"background-color:Tomato;\\\">i</td><td  \n>        style=\\\"background-color:Plum;\\\">j</td><td  \n>        style=\\\"background-color:PaleGreen;\\\">k</td></tr><tr><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Violet;\\\">g</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">h</td><td  \n>        style=\\\"background-color:Tomato;\\\">i</td><td  \n>        style=\\\"background-color:Plum;\\\">j</td><td  \n>        style=\\\"background-color:PaleGreen;\\\">k</td></tr><tr><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Violet;\\\">g</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">h</td><td  \n>        style=\\\"background-color:Tomato;\\\">i</td><td  \n>        style=\\\"background-color:Plum;\\\">j</td><td  \n>        style=\\\"background-color:PaleGreen;\\\">k</td><td  \n>        style=\\\"background-color:Red;\\\">e</td></tr><tr><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Violet;\\\">g</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">h</td><td  \n>        style=\\\"background-color:Tomato;\\\">i</td><td  \n>        style=\\\"background-color:Plum;\\\">j</td><td  \n>        style=\\\"background-color:PaleGreen;\\\">k</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td></tr><tr><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Violet;\\\">g</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">h</td><td  \n>        style=\\\"background-color:Tomato;\\\">i</td><td  \n>        style=\\\"background-color:Plum;\\\">j</td><td  \n>        style=\\\"background-color:PaleGreen;\\\">k</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td></tr><tr><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Violet;\\\">g</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">h</td><td  \n>        style=\\\"background-color:Tomato;\\\">i</td><td  \n>        style=\\\"background-color:Plum;\\\">j</td><td  \n>        style=\\\"background-color:PaleGreen;\\\">k</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td></tr><tr><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Violet;\\\">g</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">h</td><td  \n>        style=\\\"background-color:Tomato;\\\">i</td><td  \n>        style=\\\"background-color:Plum;\\\">j</td><td  \n>        style=\\\"background-color:PaleGreen;\\\">k</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td></tr><tr><td  \n>        style=\\\"background-color:Violet;\\\">g</td><td  \n>        style=\\\"background-color:Violet;\\\">g</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">h</td><td  \n>        style=\\\"background-color:Tomato;\\\">i</td><td  \n>        style=\\\"background-color:Plum;\\\">j</td><td  \n>        style=\\\"background-color:PaleGreen;\\\">k</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td></tr><tr><td  \n>        style=\\\"background-color:SkyBlue;\\\">h</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">h</td><td  \n>        style=\\\"background-color:Tomato;\\\">i</td><td  \n>        style=\\\"background-color:Plum;\\\">j</td><td  \n>        style=\\\"background-color:PaleGreen;\\\">k</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Violet;\\\">g</td></tr><tr><td  \n>        style=\\\"background-color:Tomato;\\\">i</td><td  \n>        style=\\\"background-color:Tomato;\\\">i</td><td  \n>        style=\\\"background-color:Plum;\\\">j</td><td  \n>        style=\\\"background-color:PaleGreen;\\\">k</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Violet;\\\">g</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">h</td></tr><tr><td  \n>        style=\\\"background-color:Plum;\\\">j</td><td  \n>        style=\\\"background-color:Plum;\\\">j</td><td  \n>        style=\\\"background-color:PaleGreen;\\\">k</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Violet;\\\">g</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">h</td><td  \n>        style=\\\"background-color:Tomato;\\\">i</td></tr><tr><td  \n>        style=\\\"background-color:PaleGreen;\\\">k</td><td  \n>        style=\\\"background-color:PaleGreen;\\\">k</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Violet;\\\">g</td><td  \n>        style=\\\"background-color:SkyBlue;\\\">h</td><td  \n>        style=\\\"background-color:Tomato;\\\">i</td><td  \n>        style=\\\"background-color:Plum;\\\">j</td></tr></table>\"\n>       ],\n>       \"text/plain\": [\n>        \"<ipy_table.IpyTable at 0x4c12cc0>\"\n>       ]\n>      },\n>      \"execution_count\": 124,\n>      \"metadata\": {},\n>      \"output_type\": \"execute_result\"\n>     }\n>    ],\n>    \"source\": [\n>     \"r=6\\n\",\n>     \"Zn_color(6)\\n\",\n>     \"render()\"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": 125,\n>    \"metadata\": {\n>     \"collapsed\": true\n>    },\n>    \"outputs\": [],\n>    \"source\": [\n>     \"def GCD(a,b):\\n\",\n>     \"    return abs(a) if b==0 else GCD(b, a%b)\"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": 126,\n>    \"metadata\": {\n>     \"collapsed\": false\n>    },\n>    \"outputs\": [],\n>    \"source\": [\n>     \"r=8\\n\",\n>     \"G=list(i for i in range(r) if (GCD(i,r) == 1))\\n\",\n>     \"if len(G)> 26:\\n\",\n>     \"            print(\\\"Este grupo es demasiado grande para imprimir su tabla \n>     de Cayley\\\")\\n\",\n>     \"\\n\",\n>     \"letras = \n>     ['e','a','b','c','d','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',\\n\",\n>     \"          'v','w','x','y','z']         \\n\",\n>     \"colores=['Red','Yellow','Lime','Blue','Tan','YellowGreen','Violet','SkyBlue','Tomato',\\n\",\n>     \"        'Plum','PaleGreen','Magenta','Mocassin','LightPink', \n>     'LightCyan','Khaki','Ivory','Gray','Fuchsia',\\n\",\n>     \"       \n>     'Green','Coral','Bisque','Aqua','Azure','DeepPink','Gainsboro','HotPink']\\n\",\n>     \"elem_color=dict(zip(G,colores))\\n\",\n>     \"elem_letra=dict(zip(G,letras))\\n\",\n>     \"G=[G[0]]+G\\n\",\n>     \"lista=[[(i*j) %r for i in G] for j in G] \\n\",\n>     \"from ipy_table import *\\n\",\n>     \"make_table(lista,interactive=False)\\n\",\n>     \"for i in range(len(G)):\\n\",\n>     \"    for j in range(len(G)):\\n\",\n>     \"        set_cell_style(i, j,color=elem_color[lista[i][j]])\\n\",\n>     \"set_cell_style(0,0, no_border='left,top',color='White')                   \\n\",\n>     \"lista[0][0] = 'Z<sup>x</sup><sub>r</sub>'\\n\"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": 127,\n>    \"metadata\": {\n>     \"collapsed\": false\n>    },\n>    \"outputs\": [\n>     {\n>      \"data\": {\n>       \"text/html\": [\n>        \"<table border=\\\"1\\\" cellpadding=\\\"3\\\" cellspacing=\\\"0\\\"  \n>        style=\\\"border:1px solid black;border-collapse:collapse;\\\"><tr><td  \n>        style=\\\"background-color:White;border-left: 1px solid \n>        transparent;border-top: 1px solid \n>        transparent;\\\">Z<sup>x</sup><sub>r</sub></td><td  \n>        style=\\\"background-color:Red;\\\">1</td><td  \n>        style=\\\"background-color:Yellow;\\\">3</td><td  \n>        style=\\\"background-color:Lime;\\\">5</td><td  \n>        style=\\\"background-color:Blue;\\\">7</td></tr><tr><td  \n>        style=\\\"background-color:Red;\\\">1</td><td  \n>        style=\\\"background-color:Red;\\\">1</td><td  \n>        style=\\\"background-color:Yellow;\\\">3</td><td  \n>        style=\\\"background-color:Lime;\\\">5</td><td  \n>        style=\\\"background-color:Blue;\\\">7</td></tr><tr><td  \n>        style=\\\"background-color:Yellow;\\\">3</td><td  \n>        style=\\\"background-color:Yellow;\\\">3</td><td  \n>        style=\\\"background-color:Red;\\\">1</td><td  \n>        style=\\\"background-color:Blue;\\\">7</td><td  \n>        style=\\\"background-color:Lime;\\\">5</td></tr><tr><td  \n>        style=\\\"background-color:Lime;\\\">5</td><td  \n>        style=\\\"background-color:Lime;\\\">5</td><td  \n>        style=\\\"background-color:Blue;\\\">7</td><td  \n>        style=\\\"background-color:Red;\\\">1</td><td  \n>        style=\\\"background-color:Yellow;\\\">3</td></tr><tr><td  \n>        style=\\\"background-color:Blue;\\\">7</td><td  \n>        style=\\\"background-color:Blue;\\\">7</td><td  \n>        style=\\\"background-color:Lime;\\\">5</td><td  \n>        style=\\\"background-color:Yellow;\\\">3</td><td  \n>        style=\\\"background-color:Red;\\\">1</td></tr></table>\"\n>       ],\n>       \"text/plain\": [\n>        \"<ipy_table.IpyTable at 0x4bcee10>\"\n>       ]\n>      },\n>      \"execution_count\": 127,\n>      \"metadata\": {},\n>      \"output_type\": \"execute_result\"\n>     }\n>    ],\n>    \"source\": [\n>     \"r=11\\n\",\n>     \"Un_color(11)\\n\",\n>     \"render()\"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": 128,\n>    \"metadata\": {\n>     \"collapsed\": false\n>    },\n>    \"outputs\": [],\n>    \"source\": [\n>     \"def all_perms(elements):\\n\",\n>     \"    if len(elements) <= 1:\\n\",\n>     \"        yield elements  # Only permutation possible = no permutation\\n\",\n>     \"    else:\\n\",\n>     \"        # Iteration over the first element in the result permutation:\\n\",\n>     \"        for (index, first_elmt) in enumerate(elements):\\n\",\n>     \"            other_elmts = elements[:index]+elements[index+1:]\\n\",\n>     \"            for permutation in all_perms(other_elmts): \\n\",\n>     \"                yield [first_elmt] + permutation\"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": 197,\n>    \"metadata\": {\n>     \"collapsed\": false\n>    },\n>    \"outputs\": [\n>     {\n>      \"name\": \"stdout\",\n>      \"output_type\": \"stream\",\n>      \"text\": [\n>       \"[(1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1), (3, 1, 2), (3, 2, 1)]\\n\"\n>      ]\n>     }\n>    ],\n>    \"source\": [\n>     \"r=3\\n\",\n>     \"G=list(itertools.permutations(list(range(1,r+1))))\\n\",\n>     \"#G=list(all_perms(list(range(1,r+1))))\\n\",\n>     \"print(G)\\n\",\n>     \"if len(G) > 26:\\n\",\n>     \"            print(\\\"Este grupo es demasiado grande para imprimir su tabla \n>     de Cayley\\\")\\n\",\n>     \"letras = \n>     ['e','a','b','c','d','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u',\\n\",\n>     \"          'v','w','x','y','z']         \\n\",\n>     \"colores=['Red','Yellow','Lime','Blue','Tan','YellowGreen','Violet','SkyBlue','Tomato',\\n\",\n>     \"        'Plum','PaleGreen','Magenta','Mocassin','LightPink', \n>     'LightCyan','Khaki','Ivory','Gray','Fuchsia',\\n\",\n>     \"       \n>     'Green','Coral','Bisque','Aqua','Azure','DeepPink','Gainsboro','HotPink']\\n\",\n>     \"elem_color=dict(zip(G,colores))\\n\",\n>     \"elem_letra=dict(zip(G,letras))\\n\",\n>     \"G=[G[0]]+G \\n\",\n>     \"lista=[[elem_letra[tuple([i[k-1] for k in j])] for i in G] for j in G]\\n\",\n>     \"lista2=[[tuple([i[k-1] for k in j]) for i in G] for j in G]\\n\",\n>     \"from ipy_table import *\\n\",\n>     \"make_table(lista,interactive=False)\\n\",\n>     \"for i in range(len(G)):\\n\",\n>     \"    for j in range(len(G)):\\n\",\n>     \"        set_cell_style(i, j,color=elem_color[lista2[i][j]])\\n\",\n>     \"set_cell_style(0,0, no_border='left,top',color='White')                   \\n\",\n>     \"lista[0][0] = 'S<sub>r</sub>'\\n\"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": 198,\n>    \"metadata\": {\n>     \"collapsed\": false\n>    },\n>    \"outputs\": [\n>     {\n>      \"data\": {\n>       \"text/html\": [\n>        \"<table border=\\\"1\\\" cellpadding=\\\"3\\\" cellspacing=\\\"0\\\"  \n>        style=\\\"border:1px solid black;border-collapse:collapse;\\\"><tr><td  \n>        style=\\\"background-color:White;border-left: 1px solid \n>        transparent;border-top: 1px solid transparent;\\\">S<sub>r</sub></td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td></tr><tr><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td></tr><tr><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td></tr><tr><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td></tr><tr><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td></tr><tr><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Red;\\\">e</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td></tr><tr><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:YellowGreen;\\\">f</td><td  \n>        style=\\\"background-color:Blue;\\\">c</td><td  \n>        style=\\\"background-color:Tan;\\\">d</td><td  \n>        style=\\\"background-color:Yellow;\\\">a</td><td  \n>        style=\\\"background-color:Lime;\\\">b</td><td  \n>        style=\\\"background-color:Red;\\\">e</td></tr></table>\"\n>       ],\n>       \"text/plain\": [\n>        \"<ipy_table.IpyTable at 0x4e73ac8>\"\n>       ]\n>      },\n>      \"execution_count\": 198,\n>      \"metadata\": {},\n>      \"output_type\": \"execute_result\"\n>     }\n>    ],\n>    \"source\": [\n>     \"render()\"\n>    ]\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": null,\n>    \"metadata\": {\n>     \"collapsed\": true\n>    },\n>    \"outputs\": [],\n>    \"source\": []\n>   },\n>   {\n>    \"cell_type\": \"code\",\n>    \"execution_count\": null,\n>    \"metadata\": {\n>     \"collapsed\": true\n>    },\n>    \"outputs\": [],\n>    \"source\": []\n>   }\n>  ],\n>  \"metadata\": {\n>   \"kernelspec\": {\n>    \"display_name\": \"Python 3\",\n>    \"language\": \"python\",\n>    \"name\": \"python3\"\n>   },\n>   \"language_info\": {\n>    \"codemirror_mode\": {\n>     \"name\": \"ipython\",\n>     \"version\": 3\n>    },\n>    \"file_extension\": \".py\",\n>    \"mimetype\": \"text/x-python\",\n>    \"name\": \"python\",\n>    \"nbconvert_exporter\": \"python\",\n>    \"pygments_lexer\": \"ipython3\",\n>    \"version\": \"3.4.3\"\n>   }\n>  },\n>  \"nbformat\": 4,\n>  \"nbformat_minor\": 0\n> }\n>\n>\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/pedritomelenas/Algebra-II/issues/2#issuecomment-149008453\n"}}