The Look and say sequence is a recursively defined sequence of numbers studied most notably by John Conway. Sequence Definition Take a decimal

Continue Reading## C++: 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 Reading## C++: 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 Reading## C++: 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 Reading## C++: 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 Reading## C++: 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 Reading## C++: 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 Reading## C++: 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