#Python 3, 74 Saved 6 bytes thanks to DSM. Nothing too exciting, join the ranges and then convert to ints and add them. lambda x:sum(int(''.join(list(map(str,range(1,x+1)))[::i]))for i in(1,-1))