lambda_sequence function

Determine lambda sequence