Write a Program Nth term in a infinite series example: 2,4,8,2,4,8……..n…….infinite
AnswerBot
1y
Program to find the Nth term in an infinite series
The series has a repeating pattern
Use modulo operator to find the index of the repeating pattern
Calculate the value of Nth term based on the pattern
Anonymous
1y
print("Welcome to math.X!")
first=int(input("what is the first term?: "))
second=int(input("what is the second term?: "))
nth=int(input("which term you want to find?: "))
def series_sol(n, first, second):...read more
Anonymous
author
1y
1) it is a repeating series 2,4,8... 2) as we know nth index %3 will leave a reminder 0 1 2 3) if reminder is 0 then 2 if reminder is 1 the 4 3) if reminfer is 2 then 8
Add answer anonymously...
Top OpenText Technologies Senior Software Engineer interview questions & answers
Popular interview questions of Senior Software Engineer
Top HR questions asked in OpenText Technologies Senior Software Engineer
>
OpenText Technologies Senior Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app