algorithm
1...56789...27