Problem 51274. Solve a nonlinear difference equation

Consider the difference equation a_{n+1} = a_n^p with the initial (n = 0) value a0. If a0 is 2 and p = 2, then a1 = 4, a2 = 16, a3 = 256, etc.
Write a function that takes two values of n and the corresponding values of a_n and returns the initial value a0 and the exponent p.

Solution Stats

60.0% Correct | 40.0% Incorrect
Last Solution submitted on Nov 09, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers21

Suggested Problems

More from this Author281

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!