#Bash+coreutils+[BSDGames][1] package, 44 bytes seq $[10**15]|number -l|grep -v [e.]|sed $1q This outputs each term written in words - not sure if that's acceptable or not: $ ./eban.sh 5 two four six thirty thirty-two $ [1]: http://wiki.linuxquestions.org/wiki/BSD_games