The Look and say sequence is a recursively defined sequence of numbers studied most notably by John Conway. Sequence Definition Take a decimal
Continue ReadingC++: Hofstadter-Conway $10,000 Sequence
The definition of the sequence is colloquially described as: Starting with the list [1,1], Take the last number in the list so far: 1, I'll ca
Continue ReadingC++: Equilibrium Index
An equilibrium index of a sequence is an index into the sequence such that the sum of elements at lower indices is equal to the sum of elements at hig
Continue ReadingC++: Generator
A generator is an executable entity (like a function or procedure) that contains code that yields a sequence of values, one at a time, so that each ti
Continue ReadingC++: Fast Fourier Transform
The purpose of this task is to calculate the FFT (Fast Fourier Transform) of an input sequence. The most general case allows for complex numbers at t
Continue ReadingC++: Factorial
The Factorial Function of a positive integer, n, is defined as the product of the sequence n, n-1, n-2, ...1 and the factorial of zero, 0, is defined
Continue ReadingC++: Fibonacci N-Step Number Sequences
These number series are an expansion of the ordinary Fibonacci sequence where: For n = 2 we have the Fibonacci sequence; with initial values [1,1
Continue ReadingC++: Fibonacci Sequence
The Fibonacci sequence is a sequence Fn of natural numbers defined recursively: F0 = 0 F1 = 1 Fn = Fn-1 + Fn-2, if n>1 Write a function to ge
Continue Reading