1,6

Antti Karttunen, Table of n, a(n) for n = 1..16384

Antti Karttunen, Data supplement: n, a(n) computed for n = 1..65537

(PARI) A094918(n) = lift(Mod((3^n-1)/2, n)); \\ Antti Karttunen, May 19 2020

(k^n-1)/(k-1) mod n for k = 1, ..., 10 gives A082495, this sequence, A094919, A094920, A094921, A094922, A094923, A094924 and A095250.

Cf. A003462.

Sequence in context: A266392 A021713 A122388 * A110146 A126217 A303499

Adjacent sequences: A094915 A094916 A094917 * A094919 A094920 A094921

nonn,look

N. J. A. Sloane, Jun 18 2004

approved