Parity Sequence #
This file introduces the parity sequence. It is a core sequence on the OEIS.
Implementation notes #
We implement the sequence definition using Nat.mod from Mathlib.
Main results #
- The basic definition and the first values of the sequence, up to
n=10are given.
The period 2 sequence; i.e., the sequence corresponding to the parity of n.
Equations
- Sequence.Parity n = n.mod 2
Instances For
OEIS sequence offset