Consider the difference equation
with the initial (
) value
. If
is 2 and
, then
,
,
, etc.
Write a function that takes two values of n and the corresponding values of
and returns the initial value
and the exponent p.
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers26
Suggested Problems
-
Return the 3n+1 sequence for n
8534 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
974 Solvers
-
Self-similarity 2 - Every third term
67 Solvers
-
67 Solvers
-
150 Solvers
More from this Author328
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Good one.