OFFSET
1,5
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A001554(n) mod n.
a(A056750(n)) = 0.
If n is a prime >= 29, a(n) = 28. Robert Israel, Feb 09 2023
MAPLE
a:= n-> add(i&^n, i=1..7) mod n:
seq(a(n), n=1..100); # Alois P. Heinz, Feb 11 2021
MATHEMATICA
a[n_] := Mod[Sum[k^n, {k, 1, 7}], n]; Array[a, 100] (* Amiram Eldar, Feb 11 2021 *)
PROG
(PARI) a(n) = sum(k=1, 7, k^n)%n;
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Feb 11 2021
STATUS
editing