There is a sequence of positive integers a(i). For each i>1, a(i) is the least possible integer with the following two features:
a(i) > a(i-1)
The sum of the digits of a(i) equals the sum of the digits of 4 x a(i-1)
For example, if a(1) = 4 and n = 5, the first five members of the sequence are: 4, 7, 19, 49, and 79.
Given a value of a(1) and an index n, find and print the value of a(n).