Transfinite interview question

Print the program using arithmetic progration