using System.Collections.Generic;
using System.Numerics;
namespace Algorithms.Sequences;
///
///
/// Sequence of natural numbers.
///
///
/// Wikipedia: https://wikipedia.org/wiki/Natural_number.
///
///
/// OEIS: https://oeis.org/A000027.
///
///
public class NaturalSequence : ISequence
{
///
/// Gets sequence of natural numbers.
///
public IEnumerable Sequence
{
get
{
var n = new BigInteger(1);
while (true)
{
yield return n++;
}
}
}
}