Could someone with a computer access the Internet and download an Excel spreadsheet onto that computer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Could someone with a computer access the Internet and download an Excel spreadsheet onto that computer?

I refer in the question to the 2010 version of the Excel spreadsheets. Please create a macro with the instruction code that I will show you below. Try to run the program and, if it succeeds (that is, if the interpreter does not show any error messages), save this macro and send me, please, the name of the web page where this macro has been saved. The instruction code is as follows: 1.Part (n) function 2.dim a (15.15) 3.dim i, s, h, k. 4. if n = 1 then partic = 1: output function 5.k = n 6.for i = 1 a n. 7.a (1, i) = 1 8.a (I, I) = 1 next me for h = 2 an for i = 2 a h-1 m = h-i s = 0 for j = 1 a i: s = s + a (j, m): next j a (i, h) = s next me next h for h = 1 an s = 0 for i = 1 a k s = s + a (i, h) next me next h partic = s final function = Part function (15)

21st Oct 2020, 8:49 PM
Jose Luis Mena Perez
Jose Luis Mena Perez - avatar
13 Answers
+ 1
Don't worry, Benjamin. I have found a mobile application with which I can run the program whose instruction code I showed you. So I no longer need help. I thank you anyway the one you will give a first answer to my question
27th Oct 2020, 4:46 PM
Jose Luis Mena Perez
Jose Luis Mena Perez - avatar
0
That's a lot of text and still i don't understand your intention but the answer to your question is yes
24th Oct 2020, 8:08 PM
Benjamin Jürgens
Benjamin Jürgens - avatar
0
No te preocupes, Benjamin. He hallado una aplicacion para movil con la que puedo ejecutar el programa cuyo codigo de instrucciones te mostre. Ya no necesito, por tanto, ayuda. Te agradezco de todos modos el que dieras una primera respuesta a mi pregunta.
27th Oct 2020, 4:32 PM
Jose Luis Mena Perez
Jose Luis Mena Perez - avatar
0
Glad you found a solution. I have a newer version office anyway
27th Oct 2020, 5:39 PM
Benjamin Jürgens
Benjamin Jürgens - avatar
0
I don't speak Spanish and just now understood from your example that you want to calculate number partitions This code calculates the integer partition, just has unordered output: https://code.sololearn.com/cq4aPK0x07EU/?ref=app Maybe it useful for you since it can run on your phone directly
27th Oct 2020, 6:13 PM
Benjamin Jürgens
Benjamin Jürgens - avatar
0
Mi intencion era tener el enlace de un codigo de instrucciones para poder ejecutar un programa que no mostrase cada una de las particiones ordinarias que se pueden hacer de un numero, sino el numero de particiones ordinarias que se pueden hacer de el.En el caso de 7, por ejemplo, es 15 el numero de particiones; en el caso de 9 es 30; en el de 13,101;en el de 30, 5604...Te pediria ,por favor, que creases una macro de hoja de calculo excel y que intentases ejecutar el programa.Si lo logras(o sea, si no muestra mensajes de error),enviame por favor, el enlace del codigo de instrucciones. Asi podre ver el codigo y ejecutarlo en mi movil.El codigo de instrucciones es este: Function partic(n) dim a(15,15) dim i,s,h,k if n=1 then partic=1:exit function k=n for i=1 to n a(1,i)=1 a(i,i)=1 next i for h=2 to n for i=2 to h-1 m=h-i s=0 for j=1 to i:s=s+a(j,m):next j a(i,h)=s next i next h for h=1 to n s=0 for i=1 to k s=s+a(i,h) next i next h partic=s end function =partic(15)
29th Oct 2020, 10:51 PM
Jose Luis Mena Perez
Jose Luis Mena Perez - avatar
0
Stephen, lee, por favor, mi mensaje anterior. Si es posible crea una macro de la version del 2010 de las hojas de calculo excel y sigue los pasos para poder ejecutar el codigo de instrucciones, guardarlo y, despues de guardado, enviarme el enlace de codigo de instrucciones(o sea, el nombre de la pagina web que aparezca en la parte superior de la macro que hayas creado, ejecutado y guardado.
29th Oct 2020, 10:52 PM
Jose Luis Mena Perez
Jose Luis Mena Perez - avatar
0
Stephen, please read my previous message. If possible, create a macro of the 2010 version of the excel spreadsheets and follow the steps to be able to execute the instruction code, save it and, after saving, send me the instruction code link (that is, the name of the web page that appears at the top of the macro that you have created, executed and saved.
30th Oct 2020, 7:46 AM
Jose Luis Mena Perez
Jose Luis Mena Perez - avatar
0
I added the number of partitions to the output and made it ordered. Does that suit your needs or are you interested in only the number of partitions for numbers in a certain range? Then let me know and i can change it. I can't provide an implementation in excel https://code.sololearn.com/cQh6wkmEBgTh/?ref=app
30th Oct 2020, 8:02 AM
Benjamin Jürgens
Benjamin Jürgens - avatar
0
Benjamin, estoy interesado solo en el calculo de la cantidad de particiones de cualquier numero en un rango que vaya del 1 al 1000. Si te es posible, enviame el enlace del codigo de un programa que haga esta tarea y que sea una traduccion al lenguaje python del codigo de instrucciones en lenguaje excel que te mostrare mas abajo. Esto seria lo que prefiero, pero si no consigues hacerlo, enviame igualmente un codigo de instrucciones de un programa que calcule solo la cantidad de particiones de cualquier numero en un rango del 1 al 1000(ha de ser un pograma qu no muestre cada una de las particiones en si). El codigo que te pido que traduzcas del lenguaje excel al pyhon es el que aparece en mi proximo mensaje.
30th Oct 2020, 12:15 PM
Jose Luis Mena Perez
Jose Luis Mena Perez - avatar
0
El codigo en lenguaje excel que me agradaria que tradujeses al lenguaje pyhon es este: Function partic(n) dim a(15,15) dim i,s,h,k if n=1 then partic=1:exit function k=n for i=1 to n a(1,i)=1 a(i,i)=1 next i for h=2 to n for i=2 to h-1 m=h-i s=0 for j=1 to i:s=s+a(j,m):next j a(i,h)=s next i next h for h=1 to n s=0 for i=1 to k s=s+a(i,h) next i next h partic=s end function =partic(15)
30th Oct 2020, 2:11 PM
Jose Luis Mena Perez
Jose Luis Mena Perez - avatar
0
Benjamin, lee, por favor, mis 2 anteriores mensajes.
30th Oct 2020, 2:14 PM
Jose Luis Mena Perez
Jose Luis Mena Perez - avatar
0
The python code produces results up to 22. You can find the list up to 50 at https://oeis.org/A000041 The number grows exponentially, for 1000 it is around 35 digits long. Also computing effort and storage requirements grow massively, so if you REALLY need more than 50 better search for a precalculated list. Surely excel won't do the job. That is all i can do for you. Please upvote my answers if you think they were helpful
30th Oct 2020, 3:56 PM
Benjamin Jürgens
Benjamin Jürgens - avatar