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

50 Solutions

24 Solvers

Last Solution submitted on Jan 13, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers24

Suggested Problems

More from this Author321

Community Treasure Hunt

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

Start Hunting!