OFFSET
1,3
COMMENTS
Starting from a(2) the sequence is periodic with period length 20. - Giovanni Resta, Feb 23 2014
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
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
KEYWORD
nonn,base
AUTHOR
José María Grau Ribas, Feb 22 2014
STATUS
approved