algorithm
1...45678...27