Cody

Problem 42647. Recursion - Fun

 Generate the first k terms in the sequence a(n) define recursively by 
 a(n+1)=p*a(n)+(1+a(n)) with p=0.9 and a(1)=0.5
Test Case
    n = 2;
    a = [a(1) a(2)] = [0.5000    1.9500]

Solution Stats

10.56% Correct | 89.44% Incorrect
Last Solution submitted on Mar 13, 2020

Problem Comments

Solution Comments