Table[Mod[(j^k), 9], {j, 2, 8}, {k, 0, 6}]

PowerMod[{2, 4, 8}, -1, 9]