Find the value of this expression:
1*22+2*32+3*42+..........+2023*20242
-------------------------------------
12*2+22*3+32*4+..........+20232*2024
It likely is very close to 2024/2023 which is about 1.0004943153732082
Numerator 4196864618100
Denominator 4194100795500
The ratio calculates to 1.000658978583196
-----------
def ratio(n):
num = 0
den = 0
for i in range(1,n+1):
num += i * (i+1)**2
den += i**2 * (i+1)
print('Numerator',num)
print('Denominator',den)
return num/den
print('The ratio calculates to', ratio(2023))
|
Posted by Larry
on 2023-10-19 12:05:09 |