algorithm
1...910111213...27