Least k>0 such that the last digit of (n+k)^n is the same as the last digit of n^n.

A071358

Least k>0 such that the last digit of (n+k)^n is the same as the last digit of n^n.

Terms

    a(0) =10a(1) =6a(2) =10a(3) =2a(4) =10a(5) =8a(6) =10a(7) =4a(8) =10a(9) =10a(10) =10a(11) =2a(12) =10a(13) =2a(14) =10a(15) =2a(16) =10a(17) =4a(18) =10a(19) =10a(20) =10a(21) =6a(22) =10a(23) =2a(24) =10a(25) =8a(26) =10a(27) =4a(28) =10a(29) =10

External references