Answer:
Written in Python
def sums(n):
total = 0
for i in range(1,n+1):
if i%2 == 0:
total = total + i*2
else:
total = total + i
return(total)
Step-by-step explanation:
The function is written in Python
def sums(n):
This initializes total to 0
total = 0
This iterates through the integers that makes up n i.e. 1,2,3.....n
for i in range(1,n+1):
This checks if current digit is even
if i%2 == 0:
If yes, it adds the double of the digit
total = total + i*2
else:
If otherwise, it adds the digit
total = total + i
This prints the calculated sum or total
return(total)
To call the function from main, use the following:
print(sums(n))
Where n is a positive integer. i.e.
Answer:
When you multiply through by the LCD and solve the resulting quadratic equation, you get solutions x=2 and x=1. However when we try to check the solution x=2, it causes the first and last denominators to become 0, which is undefined. However x=1 checks.
Step-by-step explanation:
it is 30% i am pretty sure
Answer:
Two real roots
Step-by-step explanation:
The portion of the quadratic formula that determines the number of roots is
b² - 4ac
If it's positve there are two real roots
If it's zero there is one real root
If it's negative there are no real roots
------------------------------
b² - 4ac = 7² - 4(3)(-8)
b² - 4ac = 49 + 96
b² - 4ac = 145
Two real roots since 145 is positive
Answer:
exact form -40/3 decimal form -13.3 the 3 after the point would have a line over it because its repeating mixed number form -13 1/3
Step-by-step explanation: