For k in {2,3,...,9} define a sequence as follows: a(0)=0; for n>=0, a(n+1)=a(n)+1, unless a(n) ends in k, in which case a(n+1) is obtained by replacing the last digit of a(n) with the digit(s) of k^2. This is k(4).

A237341

For k in {2,3,...,9} define a sequence as follows: a(0)=0; for n>=0, a(n+1)=a(n)+1, unless a(n) ends in k, in which case a(n+1) is obtained by replacing the last digit of a(n) with the digit(s) of k^2. This is k(4).

Terms

    a(0) =0a(1) =1a(2) =2a(3) =3a(4) =4a(5) =16a(6) =17a(7) =18a(8) =19a(9) =20a(10) =21a(11) =22a(12) =23a(13) =24a(14) =216a(15) =217a(16) =218a(17) =219a(18) =220a(19) =221a(20) =222a(21) =223a(22) =224a(23) =2216a(24) =2217a(25) =2218a(26) =2219a(27) =2220a(28) =2221a(29) =2222

External references