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

51 Solutions

25 Solvers

Last Solution submitted on Apr 22, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers25

Suggested Problems

More from this Author323

Community Treasure Hunt

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

Start Hunting!