Hi :) I'm doing a programming project with development of an algorithm for a quadratic recursive sequence: (3, 3, 7, 11, 19, 20, 32), but I can't figure out which expression to use. I know it's probably got something to do with the differences of n-1 and n-2 being added together. Any help you can offer would be appreciated. Thank you :)
defychaos
0
Newbie Poster
Recommended Answers
Jump to PostWell this is nothing but an arithematic progression.
Well the first element is 3 and the second element is ((3x1)+0)=3 again the next element is ((3x2)+1)=7 and so on.
So you will just need to take in the first element as a ;
Then to get the …
Jump to PostThat code yields:
3, 7 , 11, 15, 19, 23, 27, 31 ...
I think you're on the right track though.
I'm trying to figure this one out too.
All 6 Replies
Sky Diploma
571
Practically a Posting Shark
chococrack
74
Junior Poster
Sky Diploma
571
Practically a Posting Shark
Sky Diploma
571
Practically a Posting Shark
defychaos
0
Newbie Poster
Lerner
582
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.