OFFSET
1,2
LINKS
Matthew Campbell, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = prime(n) - A260178(n).
EXAMPLE
a(1) = prime(1) - (hyperfactorial(prime(1)-1)) mod prime(1) = 2 - hyperfactorial(2-1) mod (2) = 2 - 1 mod 2 = 2 - 1 = 1.
MATHEMATICA
Table[Prime[n] - Mod[Hyperfactorial[Prime[n] - 1], Prime[n]], {n, 1, 70}]
PROG
(PARI) a(n, p=prime(n))=lift(-prod(k=1, p-1, Mod(k, p)^k)) \\ Charles R Greathouse IV, Jul 23 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Matthew Campbell, Jul 22 2015
STATUS
approved