OFFSET
0,1
COMMENTS
FORMULA
a(1) = 2, for n > 1, a(n) = 10 * a(n - 1) + 2 if A304025(n - 1) is even. Otherwise, a(n) = 10 * a(n - 1) - 8. - David A. Corneth, May 11 2018
EXAMPLE
The number 5 in base 3/2 is 22, and the number 6 is 210. Therefore, 22 is the largest two-digit integer.
PROG
(PARI) first(n) = {my(res=vector(n), c = 2); res[1]=2; for(i=2, n, res[i] = 10 * res[i-1] + 2; if(c % 2 == 1, res[i] -= 10); c = 3 * c / 2 + if(c%2==0, 2, 1/2)); res} \\ David A. Corneth, May 11 2018
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Tanya Khovanova and PRIMES STEP Senior group, May 04 2018
STATUS
approved