Shorter way in Ruby (<54 bytes, my best) to print n terms of an arithmetic sequence starting from 0 with common term r?
Input
6 2
Output
0 2 4 6 8 10
Input
4 0
Output
0 0 0 0
any shorter way to do this one in python or ruby?
take in two numbers (one line, space-delimieted), convert to binary, and add them as if they were decimal.
input: 13 89
output: 1012102