Linear Patterns And Functions