Oct-22-2020, 02:02 PM
Guys, I'm studying python and if someone can help me solve these algorithms in python version 2.7, I will be grateful. Thank you!
Question 1:
Make a Python program that shows the following N Series terms:
S = 1/1 + 2/3 + 3/5 + 4/7 + ..... + N / M
In addition, print the sum of the series elements as well.
Ex: N = 3
S = 1 + 2/3 + 3/5
Sum = 2.266666
------------------------------
Make a program that reads a set of N values and prints the triangular numbers, if any, TELL how many of those values are triangular.
A number is triangular when it is the product of 3 consecutive integers.
Ex: 120 = 4 * 5 * 6
Make it as simple as possible, just using the basic instructions, please, you cannot use a list, etc.
Question 1:
Make a Python program that shows the following N Series terms:
S = 1/1 + 2/3 + 3/5 + 4/7 + ..... + N / M
In addition, print the sum of the series elements as well.
Ex: N = 3
S = 1 + 2/3 + 3/5
Sum = 2.266666
------------------------------
Make a program that reads a set of N values and prints the triangular numbers, if any, TELL how many of those values are triangular.
A number is triangular when it is the product of 3 consecutive integers.
Ex: 120 = 4 * 5 * 6
Make it as simple as possible, just using the basic instructions, please, you cannot use a list, etc.