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

A237346

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

Terms

    a(0) =0a(1) =1a(2) =2a(3) =3a(4) =4a(5) =5a(6) =6a(7) =7a(8) =8a(9) =9a(10) =81a(11) =82a(12) =83a(13) =84a(14) =85a(15) =86a(16) =87a(17) =88a(18) =89a(19) =881a(20) =882a(21) =883a(22) =884a(23) =885a(24) =886a(25) =887a(26) =888a(27) =889a(28) =8881a(29) =8882

External references