Direct way to calculate nth term of cyclically repeating function?

  • Thread starter Thread starter ktoz
  • Start date Start date
  • Tags Tags
    Function Term
AI Thread Summary
The discussion centers on finding a direct method to calculate the nth term of a cyclically repeating function without iterating through all previous steps. The user seeks a more efficient approach for a computer program, suggesting the use of the modulo function as a potential solution. However, it is noted that due to the nature of the functions involved, particularly in the context of the Mandelbrot set, iteration may still be necessary. The conversation highlights the challenge of applying the modulo function effectively in this scenario. Ultimately, the consensus leans towards the difficulty of avoiding iteration entirely.
ktoz
Messages
170
Reaction score
12
"cyclic functions" may not be the correct term, but I don't know what else to call them. (only have basic high school math training, no calculus) Here's what I'm looking for.

Given the following series of functions

f(a) = b (step 1)
f(b) = c (step 2)
f(c) = d (step 3)
...
f(n) = a (step n)

Is there a general way to rework these so that you can directly calculate the value at steps 1,2,3 etc rather than having to iterate through all the steps from a to x, something like this?

f(0) = a
f(1) = b
f(2) = c
f(3) = d
...
f(n) = a

This problem arose from a computer program I'm working on and it would be much more efficient to directly calculate the n'th term rather than having to iterate through them all.

Thanks for any help
 
Mathematics news on Phys.org
How about using the mod (modulo) function?
 
Example?

Tide said:
How about using the mod (modulo) function?

Here's a little more background. Using the Mandelbrot generating function Z1 = Z0^2 + c yeilds either:

Escape set - values not in set
Chaotic set - values don't escape but also don't settle into a repeating set of values
Convergent set - values converge to either a single value or a repeating set of values

Convergent values take the form
f(a) = b
f(b) = c
f(c) = d
...
f(n) = a

With the above in mind, how would I apply your modulo suggestion?

Thanks

Ken
 
That's a little different than what I thought you were asking in your original post. I'm afraid you're stuck with iterating.
 
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top