The Shannon Theorem and the Quadratic Span of Sequences