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(8).

A237345

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(8).

Terms

    a(0) =0a(1) =1a(2) =2a(3) =3a(4) =4a(5) =5a(6) =6a(7) =7a(8) =8a(9) =64a(10) =65a(11) =66a(12) =67a(13) =68a(14) =664a(15) =665a(16) =666a(17) =667a(18) =668a(19) =6664a(20) =6665a(21) =6666a(22) =6667a(23) =6668a(24) =66664a(25) =66665a(26) =66666a(27) =66667a(28) =66668a(29) =666664

External references