cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Programming a recursion

AlfredFlaßhaar
15-Moonstone

Programming a recursion

A friendly hello to all,
again i need help. It's about the recursion u(n+2)=7*u(n+1)-3*u(n)+3 for natural numbers n. How does the calculation and tabulation work in MC15? In derive I managed it successfully. But in MC15 everything is possible, just not the correct result. I just can't get a grip on programming in MC 😞 .
The background is the transformation of the formula u(n)=((1/2)*(7+sqrt(37))^n+((1/2)*(7-sqrt(37))^n-1 given in Binet-Art into a recursion and examination of divisibility by 3.
Kind regards, Alfred Flasshaar

ACCEPTED SOLUTION

Accepted Solutions

See if the attached file helps.

 

I wonder why you would like to use the recursion when a non-recursive formula is available.

View solution in original post

4 REPLIES 4

What about the initial values u(0) and u(1) ?

 

The Binet formula given here and the recursion are equivalent, which was derived in a different way (characteristic polynomial). Accordingly, u(1)=6 and u(2)=42.

See if the attached file helps.

 

I wonder why you would like to use the recursion when a non-recursive formula is available.

The proof that the Binet term is divisible by 3 becomes almost obvious in the recursion when inductive theory is applied. This got me interested after I also learned about a direct tricky short proof.
Thank you, the MC file is instructive for me.

Announcements

Top Tags