login
A238291
Final digit of real part of (n+n*i)^n.
2
1, 0, 6, 6, 0, 0, 4, 6, 4, 0, 8, 6, 8, 0, 0, 6, 2, 0, 2, 0, 6, 0, 6, 6, 0, 0, 4, 6, 4, 0, 8, 6, 8, 0, 0, 6, 2, 0, 2, 0, 6, 0, 6, 6, 0, 0, 4, 6, 4, 0, 8, 6, 8, 0, 0, 6, 2, 0, 2, 0, 6, 0, 6, 6, 0, 0, 4, 6, 4, 0, 8, 6, 8, 0, 0, 6, 2, 0, 2, 0, 6, 0, 6, 6, 0, 0
OFFSET
1,3
COMMENTS
Starting from a(2) the sequence is periodic with period length 20. - Giovanni Resta, Feb 23 2014
LINKS
Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
MATHEMATICA
re[n_, b_] := Mod[b + Re@PowerMod[(n + n I), n, b], b];
Table[re[n, 10], {n, 100}]
CROSSREFS
Sequence in context: A285071 A285338 A020845 * A028971 A173451 A318537
KEYWORD
nonn,base
AUTHOR
STATUS
approved