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

59.09% Correct | 40.91% Incorrect
Last Solution submitted on May 31, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers20

Suggested Problems

More from this Author256

Community Treasure Hunt

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

Start Hunting!